Program for Even or Odd Number in PHP

Programming.jpg

All the numbers which end  with 1,3,5,7 and 9 are odd numbers. for instance , numbers like 11, 23, 35, 47 etc. are odd numbers. All the numbers ending with 0,2,4,6 and eight are even numbers.

Program for Even or Odd Number in PHP

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