0

Php

Anybody is here who can give me a suitable example of Nested if else

19th Aug 2017, 4:04 AM
monu gurung
monu gurung - avatar
2 Answers
0
<?php $t = date("H"); if($t <"20") {echo"Have a good day!";} else {echo"Have a good night!";} ?>
19th Aug 2017, 4:21 AM
sayan chandra
sayan chandra - avatar
0
if(expression 1 ) {if (expression 2 ) {// statements 1} else {// Statements 2} } else {if ( expression 2) {// Statements 3} else{// Statements 4} }
19th Aug 2017, 4:23 AM
sayan chandra
sayan chandra - avatar