Equality Operators summary table : Comparison Operators « Operator « PHP

Equality Operators summary table

Operation        Operator          Example

Equality         ==                $a == $b

Inequality       !=                $a != $b

Inequality       <>                $a <> $b

Identity         ===               $a === $b

Nonidentity      !==               $a !== $b 

Related examples in the same category

1.Comparison Operators
2.Comparing numbers and strings
3.Loose Comparison Operators
4.Using Comparison Operators in if Statements
5.The Ternary Operator
6.The equality operator
7.These values are compared using dictionary order
8.These values are compared using numeric order
9.Equality Operators in action