Skip to content

Instantly share code, notes, and snippets.

@rintaun
Forked from anonymous/Date
Created December 20, 2011 14:54
Show Gist options
  • Save rintaun/1501833 to your computer and use it in GitHub Desktop.
Save rintaun/1501833 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=="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