<?php $current_day = date('j'); $current_month = date('n'); $season = ''; switch($current_month): case 1: $season = $current_day<=6 ? 'Christmastide' : 'Not Christmastide'; break; case 12: $season = $current_day>=25 ? 'Christmastide' : 'Not Christmastide'; break; default: $season = 'Not Christmastide'; break; endswitch; echo $season;
You have javascript disabled. You will not be able to edit any code.