<?php $ar = array(); for($i=1;$i<5;$i++) { $ar[] = array('date' => date("j F y",strtotime("+".$i." days")), 'id' => $i); } echo json_encode($ar);
You have javascript disabled. You will not be able to edit any code.