Tuesday, October 11, 2011

if-else statement

Code Example

<html>
<body>
<?php
    $day=date("D");
    if ($day=="Sat")
     {
         echo "Have a nice weekend!";
     } 
    else
    {
          echo "Have a nice day!";
    }
?>
</body>
</html>




No comments:

Post a Comment