public function getDestinationcity($id) { $cityinput = Jsonhotel::city($id); $cityoutput = Hotel::destinationcities($cityinput); $citydata = Xmltoarray::arr($cityoutput->DestinationCityList); //print_r($citydata['CITIES']['CITY']); exit; foreach ($citydata['CITIES']['CITY'] as $cities) { echo "<option value=" . $cities['CITYID'] . ">" . $cities['CITYNAME'] . "</option>"; } }
public function getDestinationcity($id) { $input = Xmlhotel::city($id); $data = Hotel::destinationcities($input); $output = Xmltoarray::arr($data); $city = $output['SOAP:ENVELOPE']['SOAP:BODY']['GETDESTINATIONCITYLISTRESPONSE']['GETDESTINATIONCITYLISTRESULT']['CITYLIST']['WSCITY']; //print_r($city); exit; foreach ($city as $cities) { echo "<option value=" . $cities['CITYCODE'] . ">" . $cities['CITYNAME'] . "</option>"; } }