Equals $a == $b TRUE if $a equals $b after type manipulation.
2 == "2"
Identical $a === $b TRUE if $a is equal to $b and they are of the same type.
array ("asdf") === array ("asdf")
Not equal to $a != $b TRUE if $a not equal to $b after type manipulation.
2! = "3"
Not equal to $a <> $b TRUE if $a not equal to $b after type manipulation.
2 <> "3"
Not identical $a !== $b TRUE if $a not equal to $b , or they are not of the same type.
array ("asdf")! == "asdf"
Less than $a < $b TRUE if $a strictly less than $b .
<p> 99 <100
Greater than $a > $b TRUE if $a strictly greater than $b .
100> 99
Less than or equal to $a <= $b TRUE if $a less than or equal to $b .
0.32 <= 0.54
Greater than or equal to $a >= $b TRUE if $a greater than or equal to $b .
2> = 2
Read this manual about comparison operators in PHP.
source share