Parsing XML with PHP's simpleXML

前端 未结 5 1452
北恋
北恋 2020-12-11 10:23

I\'m learning how to parse XML with PHP\'s simple XML. My code is:



        
5条回答
  •  执笔经年
    2020-12-11 11:05

    This line:

    print_r($result);
    

    is outside the foreach loop. Maybe you should try

    print_r($results);
    

    instead.

提交回复
热议问题