public static yearList ( integer $from, integer $to = null, boolean $keys = false, boolean $desc = true ) : array | ||
$from | integer | the start year |
$to | integer | the end year |
$keys | boolean | whether to set the array keys same as the values (defaults to false) |
$desc | boolean | whether to sort the years descending (defaults to true) |
return | array |