The if Statement Of PHP
Use the if statement to execute some code only if a specified condition is true.Syntax :
if (condition) code to be executed if condition is true; |
<html> <body> <?php $d=date("D"); if ($d=="Fri") echo "Have a nice day!"; ?> </body> </html> |
No comments:
Post a Comment