Use if statement to check the integer value
$variable = 5; if ($variable == 5) { print "Yes, it's five.\n"; }