Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

PHP If If Else Else Statement

<?php
$a=0;
if($a==0)
{
echo “good”;
}
else if ($a >=1  && $a<=20)
{
echo “great”;
}
else if($a>20) 
{
echo “excellent”;
}
else
{
echo “no good”;
}
?>
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #PHP #If #If #Else #Else #Statement
ADD COMMENT
Topic
Name
3+7 =