function to show if the number is even or odd ph`p code example Example: php odd or even $num = 34; if ($num % 2 == 0) { print "It's even"; }