Write a php program to print a given integer number is odd or even

Write a php program to print a given integer number is odd or even. Here’s the script which helps you to find the number is odd or even in PHP. This program will check the number whether it is odd number or even number in php

<?php 
$num=100;
if($num%2==0)
{
echo "$num is Even num";
}
else
{
echo "$num is Odd num";
}
?>

Output:

100 is Even num