0
Php
Anybody is here who can give me a suitable example of Nested if else
2 Answers
0
<?php
$t = date("H");
if($t <"20")
{echo"Have a good day!";}
else
{echo"Have a good night!";}
?>
0
if(expression 1 )
{if (expression 2 )
{// statements 1}
else
{// Statements 2}
}
else
{if ( expression 2)
{// Statements 3}
else{// Statements 4}
}