PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php function getfinancialyears($startdate, $enddate){ $startYear = date('Y', strtotime($startdate)); $endYear = date('Y', strtotime($enddate)); $financeYears = []; while($startYear < $endYear ) { array_push($financeYears, $startYear . "-" . (++$startYear)); } return $financeYears; }
Show:  
Copy Clear