Example:
~~~
print_r(Enum::dateList(1, 28, 7));
print_r(Enum::dateList(1, 10));
~~~
public static dateList ( integer $from = 1, integer $to = 31, integer $interval = 1, boolean $intervalFromZero = true, boolean $showLast = true ) : array | ||
$from | integer | the start day, defaults to 1 |
$to | integer | the end day, defaults to 31 |
$interval | integer | the date interval, defaults to 1. |
$intervalFromZero | boolean | whether to start incrementing intervals from zero if $from = 1. |
$showLast | boolean | whether to show the last date (set in $to) even if it does not match interval. |
return | array |