note 82929 added to function.date
| From: | Johan at osu1 dot php dot net | Date: | Fri, 02 May 2008 11:48:10 +0000 |
| Subject: | note 82929 added to function.date | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-138991@lists.php.net to get a copy of this message | ||
Or so:
<?php
$month = date('n', time());
if($month == 12 || $month == 1 || $month == 2)
$season = "Winter";
if($month == 3 || $month == 4 || $month == 5)
$season = "Spring";
if($month == 6 || $month == 7 || $month == 8)
$season = "Summer";
if($month == 9 || $month == 10 || $month == 11)
$season = "Fall";
echo "Season: ".$season;
?>
----
Server IP: 217.160.72.57
Probable Submitter: 87.123.79.53
----
Manual Page -- http://www.php.net/manual/en/function.date.php
Edit -- https://master.php.net/note/edit/82929
Del: integrated -- https://master.php.net/note/delete/82929/integrated
Del: useless -- https://master.php.net/note/delete/82929/useless
Del: bad code -- https://master.php.net/note/delete/82929/bad+code
Del: spam -- https://master.php.net/note/delete/82929/spam
Del: non-english -- https://master.php.net/note/delete/82929/non-english
Del: in docs -- https://master.php.net/note/delete/82929/in+docs
Del: other reasons-- https://master.php.net/note/delete/82929
Reject -- https://master.php.net/note/reject/82929
Search -- https://master.php.net/manage/user-notes.php