php check if integer equal number code example
Example 1: php check if input is int
$a = 5; //returns true
$a = "5"; //returns false
$a = 5.3; //returns false
is_int($a);
Example 2: php if less than number
<?php
if ($a > $b)
echo "a is bigger than b";
?>