Hello!
There are 2 variable start and end year:
$year_min = 1984 $year_max = 2016 How to make razhirovanie with 1 year increments That is, to be 1984, 1985, 1986 .... 2016?
Hello!
There are 2 variable start and end year:
$year_min = 1984 $year_max = 2016 How to make razhirovanie with 1 year increments That is, to be 1984, 1985, 1986 .... 2016?
http://php.net/manual/en/function.range.php
<?php $year_min = 1984; $year_max = 2016; //$step = 1; $a = range($year_min, $year_max/*, $step*/); Source: https://ru.stackoverflow.com/questions/529016/
All Articles
for? Or something harder? - pavelforenough. - Alexey Shimansky$year_min = 1984; $year_max = 2016; for ($i = 0; $i <= ($year_max - $year_min); ++$i) { echo ($year_min + $i).'<br />'; }$year_min = 1984; $year_max = 2016; for ($i = 0; $i <= ($year_max - $year_min); ++$i) { echo ($year_min + $i).'<br />'; }- Alexey Shimansky