<?php $y = array(); $x = array( 'vacationRequestDateFrom' => '2016-09-1', 'vacationRequestDateTo' => '2016-09-1' ); $x2 = array( 'vacationRequestDateFrom' => '2016-09-1', 'vacationRequestDateTo' => '2016-09-1' ); array_push($y, $x); array_push($y, $x2); $o = array_values($y); var_dump($o); //$o is not the correct output //$y is what i have, and it should look like here /* blockedDays: [ "2016-09-13", "2016-09-14", "2016-09-15", "2016-09-16", "2016-09-17", "2016-09-18", "2016-09-19", "2016-09-20", "2016-09-21", "2016-09-22" ], */ ?>
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`