PHP
Comparison Operators
Arithmetic Operators are used to Perform Arithmetic Operations on Numeric Values Such as addition, subtraction, multiplication and etc.
Operator | Name | Example | Result |
---|---|---|---|
== | Equal | $a==$b | return true if both $a and $b are equal |
=== | Identical | $a===$b | return true if both $a and $b are equal, and both have same data type |
!= | Not Equal | $a!=$b | return true if $a is not equal to $b |
<> | Not Equal | $a<>$b | return true if $a is not equal to $b |
!== | Not Identical | $a!==$b | return true if $a is not equal to $b, or both are from differnt data types. |
> | Greater then | $a>$b | Return true if $a is greater then $b |
>= | Greater then or equal | $a>=$b | Return true if $a is greater then or equal to $b |
< | Less then | $a<$b | Return true if $a is less then $b |
<= | Less then or Equal | $a<=$b | Return true if $a is less then or equal to $b |