-
-
Save rintaun/1501833 to your computer and use it in GitHub Desktop.
Date code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//This is for PRACTICE only! | |
$d=date('D', strtotime('-1 day')); | |
if ($d=="Tue") | |
echo "Have a nice Tuesday!"; | |
elseif ($d=="Mon") | |
echo "Have a nice Monday!"; | |
else | |
echo "Have a nice day!"; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment