PHP Learninf : Ifelse Statement - Publik Talk

Breaking

An informative website for every one.

Post Top Ad

Post Top Ad

Wednesday, August 2, 2017

PHP Learninf : Ifelse Statement

Description:

use the if..else statement to excute some code  if a condition is true and another code if acondition is false...

Code:

<?php
$d= date("D");
if($d=="fri")
{
echo "have a nice weekend";
}
else
{
echo "have a nice day!";
}
?>

Output:


No comments:

Post a Comment

Post Top Ad