* If..else if..else to find Current Day *
<?php
$x = date("D");
if ($x== "Saturday")
{
echo "saturday";
}
else if ($x=="Sunday")
{
echo "Sunday";
}
else if ($x== "Monday")
{
echo "Monday";
}
else
{
echo "Wednesday";
}
?>
<?php
$x = date("D");
if ($x== "Saturday")
{
echo "saturday";
}
else if ($x=="Sunday")
{
echo "Sunday";
}
else if ($x== "Monday")
{
echo "Monday";
}
else
{
echo "Wednesday";
}
?>
No comments:
Post a Comment