function HotelsOfCity($city) { $ht = new Hotel(); return json_encode($ht->get_CityHotels($city)); }
public function get_CityHotels($city_id) { $h = new Hotel(); echo json_encode($h->get_CityHotels($city_id)); }