PHP是如何检查语法错误的?即使没调用到的代码也会因为语法错误而报错。
function testA() {
echo 1;
}
function testB() {
echo 2
}
testA();
Parse error: syntax error, unexpected ‘}’, expecting ‘;’ or ‘,’ in…
推荐文章: