Read xml data from url using curl and php

后端 未结 3 1598
滥情空心
滥情空心 2020-12-30 17:26

I want to read XML data from a URL. I have the URL as follows:

http://www.arrowcast.net/fids/mco/fids.asp?sort=city&city=&number=&airline=&adi=A

<
3条回答
  •  隐瞒了意图╮
    2020-12-30 17:54

    Here is some sample code (XML parsing module may not be available on your PHP installation):

    
    

    The variable $xml now is a multi-dimensional key value array and you should easily be able to figure out how to get the elements from there.

提交回复
热议问题