Compare integer value
$numvar1 = 5; $numvar2 = 6; if ($numvar1 == 5) { print "The first number is equal to 5 \n"; } if ($numvar2 != 5) { print "The second number is not equal to 5! \n"; }