case "SPAN" :
array_pop($stack);
$top--;
break;
case "LI" :
file_put_contents($file,PHP_EOL,File_APPEND);
array_pop($stack);
$top--;
break;
/*
case "I" :
file_put_contents($file,PHP_EOL,File_APPEND);
array_pop($stack);
$top--;
break;
*/
注释掉那一部分,代码就能运行,不注释,代码就出错,可是其他地方也调用了同样的函数啊。就没错。。
这是warning提示。。
FILE_APPEND 要全部大写,注释能运行是因为case走到第三个条件了,前边两都没走那儿