我只是想确保如果您将FALSE其作为参数传递给 an empty(),它将返回TRUE:
var_dump(empty(FALSE));
但我不能。这是我得到的:
PHP Parse error: syntax error, unexpected ')', expecting :: (T_PAAMAYIM_NEKUDOTAYIM) in Command line code on line 1
当我在 cmd 中运行此代码时:
C:\>php -r "echo empty(FALSE);";
我得到了这个结果:
PHP Parse error: syntax error, unexpected ')', expecting :: (T_PAAMAYIM_NEKUDOTAYIM) in Command line code on line
Parse error: syntax error, unexpected ')', expecting :: (T_PAAMAYIM_NEKUDOTAYIM) in Command line code on line 1
我以为我会回声1或回声0。但事实并非如此。有任何想法吗?