Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- //get current month
- $currentMonth = DATE("m");
- echo $currentMonth;
- //retrieve season
- if ($currentMonth >= "03" && $currentMonth <="05")
- $season = "spring";
- elseif ($currentMonth >= "06" && $currentMonth <= "08")
- $season = "summer";
- elseif ($currentMonth >= "09" && $currentMonth <= "11")
- $season = "autumn";
- else
- $season = "winter";
- ?>
Add Comment
Please, Sign In to add comment