In PHP, is there any difference between the !=
and <>
operators?
In the manual, it states:
$a != $b Not equal TRUE if $a is not equal to $b after type juggling.
$a <> $b Not equal TRUE if $a is not equal to $b after type juggling.
I guess there are no huge differences but I'm curious.
<>
as an op for non-equality in php even though its allowed :-) – prodigitalson!=
is probably more common... – Felix Kling<>
may be convenient for VBA, Pascal or Excel programmers – PaulH