PHP 4, PHP 5, PHP 7, PHP 8

If Statement with greater than condition.

 

if ($x > $y)
  echo "x gtr than $y";



if ($x > $y) {
  echo "x gtr than $y";
  $x = $y;
}

 

Categorized in: