I need help to create an array using php via loop that will store the number of seconds of start and end of all the months of current and previous year. The array will look somewhat like this.
$dates = array(
'previous dates' => array(
'November, 2017' => array(
'start' => 1512082800,
'end' => 1514674800),
'December, 2017' => array(
'start' => 1512082800,
'end' => 1514674800)
),
'current dates' => array(
'January, 2018' => array(
'start' => 1512082800,
'end' => 1514674800),
'February, 2018' => array(
'start' => 1512082800,
'end' => 1514674800)
)
)