php compare integer and number code example Example: php if less than number <?php if ($a > $b) echo "a is bigger than b"; ?>