PHP's <> operator

This question already has an answer here:

  • What is the difference between <> and != [duplicate] 7 answers

  • As NikiC notes, <> and != are the same and have the same precedence. My earlier answer was based on what appears to be a bug in the documentation which has now been corrected.


    That would be correct. It's pretty universal between languages. I usually use that method in my SQL Server queries/stored procedures.

    PHP: Comparison Operators


    是的,它和!=相同(参见手册)。

    链接地址: http://www.djcxy.com/p/1810.html

    上一篇: 之间有什么区别

    下一篇: PHP的<>运算符