php if statement AND code example
Example 1: php if
<?php
if ($a > $b) {
echo "a is bigger than b";
$b = $a;
}
?>
Example 2: php if
<?php
if ($a > $b)
echo "a is bigger than b";
?>
Example 3: if statement php
if (condition) {
expression
}