note 50902 added to function.date

From: Date: Sun, 13 Mar 2005 19:09:43 +0000
Subject: note 50902 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-86367@lists.php.net to get a copy of this message
A season checker (valid for Northern part of earth): <?php function SeasonCheck() { if (date(M) == "Jan" || date(M) == "Dec" || date(M) == "Nov") { return "w"; } if (date(M) == "Feb" || date(M) == "Mar" || date(M) == "Apr") { return "s"; } if (date(M) == "May" || date(M) == "Jun" || date(M) == "Jul") { return "m"; } if (date(M) == "Aug" || date(M) == "Sep" || date(M) == "Oct") { return "a"; } } ?> ---- Manual Page -- http://www.php.net/manual/en/function.date.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+50902 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50902&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50902&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50902&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50902&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50902&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+50902&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#86367) next »