note 82929 deleted from function.date by felipe
| From: | felipe@php.net | Date: | Sun, 04 May 2008 22:50:46 +0000 |
| Subject: | note 82929 deleted from function.date by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-139054@lists.php.net to get a copy of this message | ||
Note Submitter: Johan
----
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;
?>