<?php $quarters = array( 1 => '01-01', 2 => '04-01', 3 => '07-01', 4 => '10-01' ); $month = date("n"); $currentQuarter = ceil($month / 3); echo 'We are currently in Q'.$currentQuarter.' of '.date("Y")."\n"; $nextQuarter = $currentQuarter+1; if (!isset($quarters[$nextQuarter])) { $nextQuarter = 1; $year = date("Y")+1; } else { $year = date("Y"); } echo 'The first day of the next quarter is '.date("Y-m-d", strtotime($year.'-'.$quarters[$nextQuarter]));
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`