note 82566 added to function.date

From: Date: Wed, 16 Apr 2008 19:46:00 +0000
Subject: note 82566 added to function.date
Groups: php.notes 
Request: Send a blank email to php-notes+get-138377@lists.php.net to get a copy of this message
If anyone wants a conversion of months to seasons...here it is....super simple. if ($month == 12 OR $month == 1 OR $month == 2) { $season = "Winter"; } elseif ($month == 3 OR $month == 4 OR $month == 5) { $season = "Spring"; } elseif ($month == 6 OR $month == 7 OR $month == 8) { $season = "Summer"; } elseif ($month == 9 OR $month == 10 OR $month == 11) { $season = "Fall"; } ---- Server IP: 208.69.120.35 Probable Submitter: 24.181.188.20 ---- Manual Page -- http://www.php.net/manual/en/function.date.php Edit -- https://master.php.net/note/edit/82566 Del: integrated -- https://master.php.net/note/delete/82566/integrated Del: useless -- https://master.php.net/note/delete/82566/useless Del: bad code -- https://master.php.net/note/delete/82566/bad+code Del: spam -- https://master.php.net/note/delete/82566/spam Del: non-english -- https://master.php.net/note/delete/82566/non-english Del: in docs -- https://master.php.net/note/delete/82566/in+docs Del: other reasons-- https://master.php.net/note/delete/82566 Reject -- https://master.php.net/note/reject/82566 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#138377) next »