operators - When to use <> instead of != php -
this question has answer here:
- reference - symbol mean in php? 15 answers
i not know if question have been asked before.
but wondering when should use <> on !=
i know if result equal not know difference between 2 operators
if (1 != 0) { // true }
and
if (1 <> 0) { // true }
please explain me differences.
they exactly same, manual:
$a != $b not equal true if $a not equal $b after type juggling.
$a <> $b not equal true if $a not equal $b after type juggling.
Comments
Post a Comment