note 22918 added to function.date
| From: | johnraphone at yahoo dot com | Date: | Thu, 04 Jul 2002 08:49:54 +0000 |
| Subject: | note 22918 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32572@lists.php.net to get a copy of this message | ||
Next time there is a major holiday, your web site will be updated without any work from you...
$todaydate = date("jF");
if ("4July" == $todaydate){
$message = "<b>Happy 4th of July!</b>";
}
elseif("25December" == $todaydate){
$message = "<b>Merry Christmas!</b>";
}
elseif("31October" == $todaydate){
$message = "<b>Happy Holloween!</b>";
}
else {
$message = "";
}
--
http://www.php.net/manual/en/function.date.php
http://master.php.net/manage/user-notes.php?action=edit+22918
http://master.php.net/manage/user-notes.php?action=delete+22918
http://master.php.net/manage/user-notes.php?action=reject+22918