/ Published in: PHP
Based on the Month range, this will display what time of the year it is and display content based on the season.
Expand |
Embed | Plain Text
//get current month //retrieve season if ($currentMonth>="03" && $currentMonth<="05") $season = "spring"; elseif ($currentMonth>="06" && $currentMonth<="08") $season = "summer"; elseif ($currentMonth>="09" && $currentMonth<="11") $season = "fall"; else $season = "winter";
You need to login to post a comment.
