美文网首页
php中true的坑!!!

php中true的坑!!!

作者: dothetrick | 来源:发表于2016-08-01 21:03 被阅读14次

    最近开发的时候碰到了几个使用true关键字的大坑,记录下,谨防二次掉坑里。

    • if(true == 'all’){} 结果为真,会执行if里面的语句

    • count(true)=1

    相关文章

      网友评论

          本文标题:php中true的坑!!!

          本文链接:https://www.haomeiwen.com/subject/fhcfsttx.html