Skip to content

Instantly share code, notes, and snippets.

/Date

Created December 20, 2011 14:52
Show Gist options
  • Save anonymous/1501830 to your computer and use it in GitHub Desktop.
Save anonymous/1501830 to your computer and use it in GitHub Desktop.
Date code
<?php
//This is for PRACTICE only!
$d=date('D', strtotime('+1 day'));
if ($d=="Tuesday")
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