syntax of if statement in php code example Example: php if <?php if ($a > $b) { echo "a is bigger than b"; $b = $a; } ?>