PHP WebService Interface Instance Air Flight timetable

Source: Internet
Author: User
Tags foreach date empty interface php foreach trim client
 -->$fromcity, ' lastcity ' => $tocity, ' thedate ' => $date, ' UserID ' => ');
$city = $client->getdomesticcity ();  
$city =get_object_vars ($city);

$city = $city [' Getdomesticcityresult ']->any;
Print_r ($city);
Var_dump ($city); 

$city _xml = simplexml_load_string ($city);
$result = $client->getdomesticairlinestime ($parm);  
$result =get_object_vars ($result);
$result = $result [' Getdomesticairlinestimeresult ']->any;

Print_r ($result [' Getdomesticairlinestimeresult ']->any);  
$obj _xml = simplexml_load_string ($result);   
Print_r ($obj _xml->children ()->children ()); ?>

<title> Train Timetable Web Service example</title>

 Flight Timetable Web Service example
cncityname== $fromcity) echo ' selected= ' selected '; Echo ' val= '. $ct->cncityname. ' > '. $ct->cncityname. ' '; Echo $ct->encityname; Echo $ct->cncityname; Echo $ct->abbreviation; ?>     reach city children ( ->children () as $CT) {echo ' cncityname== $tocity) echo ' selected= ' selected '; Ct->cncityname. ' > '. $ct->cncityname. ' '; Echo $ct->encityname; Echo $ct->cncityname; Echo $ct->abbreviation; }?>     switch city     Date
-->Children ()->children () as $child) {?> -->
Airlines Flight Number Departure Airport Departure Time arrive at the airport Arrival Time Model whether to stop halfway
Company;?> Airlinecode;?>. Startdrome;?>. StartTime;?>. Arrivedrome;?>. Arrivetime;?>. Mode;?> airlinestop==0) echo ' non-stop '; Else{echo ' Stop ';}?>

Related Article

Alibaba Cloud 10 Year Anniversary

With You, We are Shaping a Digital World, 2009-2019

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.