<?php $cities = array( 'name' => array("London","Brighton"), 'population' => array("12000000","500000") ); $array=array(); $array['firstname']="John"; $array['lastname']="Doe"; $array['cities'][] = $cities; echo json_encode($array);
You have javascript disabled. You will not be able to edit any code.