PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php function generateQuarterLabel() { $currentYear = date('Y'); $currentQuarter = ceil((intval(date('n'))/3)); return "{$currentYear}Q{$currentQuarter}_AdHoc"; } //echo generateQuarterLabel() . PHP_EOL; for ($x = 1; $x <= 12; $x++) { echo ceil($x/3) . PHP_EOL; }
Show:  
Copy Clear