×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Eric Moore
Added: Feb 2, 2022 3:25 AM
Views: 404
Tags: no tags
  1. summary of the comparison operators introduced in Chapter 3.
  2. Operation               Result – returns TRUE if...
  3. $a == $b                $a and $b are equal ignoring cases
  4. $a === $b               $a and $b equal if case is the same
  5. $a != $b, $a <> $b      $a and $b are not equal ignoring cases
  6. $a !== $b               $a and $b are not equal or not same case
  7. $a < $b                 $a is less than $b
  8. $a <= $b                $a is less than or equal to $b
  9. $a > $b                 $a is greater than $b
  10. $a >= $b                $a is greater than or equal to $b
  11. $a <=> $b               returns -1 if $a < b, returns 0
  12. if $a equals $b         returns 1 if $a > $b