Do you know what empty(false) evaluates to? or empty('0')? How about ('-1' == true)? Well see yourself :-)
This test was created based on php 4.0.5, and is updated for php 4.2.2. All this has been proofed on Win2k using PHP 4.2.2 using the PhpUnit test class "PhpSyntax_PhpUnit.class.php".
一份PHP试题
最新推荐文章于 2022-02-18 17:19:17 发布
博客围绕 PHP 语法测试展开,提及如 empty(false)、empty('0')、('-1' == true)等表达式的求值情况。测试基于 PHP 4.0.5 创建并在 4.2.2 版本更新,在 Win2k 上用 PhpUnit 测试类验证,还给出相关链接。
4639

被折叠的 条评论
为什么被折叠?



