What is difference between <> and != in PHP?
<>
!=
<?php $a = 1; $b = 2; //this is true if ($a <> $b) { echo "Yes!"; } // also this is true if ($a != $b) { echo "Yes!"; }
Thanks. :)
There is no difference, both operators serve exactly the same purpose.