PHP operator <>

This question already has an answer here:

  • Reference — What does this symbol mean in PHP? 18 answers
  • What is the difference between <> and != [duplicate] 7 answers

  • Same as !=, "Not equal"

    false <> true // operator will evaluate expression as true
    false != true // operator will evaluate expression as true
    

    Here is some reference: PHP Comparison Operators


    It's another way of saying "not equal to" (the != operator). I think of it as the "less than or greater than" operator which really just means "not equal to".


    It's equivalent to != :

    http://au.php.net/operators.comparison

    ​​​​​​

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

    上一篇: PHP的<>运算符

    下一篇: PHP运算符<>