Showing posts with label if else condition in php. Show all posts
Showing posts with label if else condition in php. Show all posts

Saturday, 29 June 2013

if else condition in php

<html>
<head>
<title>IF ELSE</title>
</head>
<body>
<?php
$i=12;
if($i%2==0)
{
 echo "THE GIVEN NUMBER IS EVEN";
}
else
{
 echo "THE GIVEN NUMBER IS ODD";
?>
</body>
</html>