<html>
<title>if date function </title>
<body>
<?php
$d=date("D");
if ($d=="Sat"||$d=="Sun")
echo "Have a nice weekend!";
else
echo "Have a nice day!";
?>
</body>
</html>
output
Have a nice day!
<title>if date function </title>
<body>
<?php
$d=date("D");
if ($d=="Sat"||$d=="Sun")
echo "Have a nice weekend!";
else
echo "Have a nice day!";
?>
</body>
</html>
output
Have a nice day!
No comments:
Post a Comment