I have multiple feeds, how do i load them at the same time with simplexml
http://www.site1.com/feed
http://www.site2.com/feed
http://www.site3.com/feed
...
http://www.site20.com/feed
$xml = simplexml_load_file(开发者_运维技巧$feed);
If you want to load multiple things in PHP you have to create a loop.
Example:
<?php
$feeds = ('http://www.site1.com/feed', 'http://www.site2.com/feed', '..');
foreach($feeds as $feed)
{
  $xml = simplexml_load_file($feed);
}
?>
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论