2 $customers = array(array(
5 'phone'=>'8436-365-256'
8 'name'=>'Icecream Island',
9 'phone'=>'8452-389-719'
12 'name'=>'Pizza Palace',
13 'phone'=>'9378-255-743'
17 if (isset($_REQUEST['id'])) {
18 $id = $_REQUEST['id'];
19 foreach ($customers as &$customer) {
20 if ($customer['id'] == $id) {
21 echo json_encode($customer);
26 echo json_encode($customers);