- $con=file_get_contents("http://vol.stock.hexun.com/charts/Close/Share/Info_3.ashx?code=600111");
- $xml = simplexml_load_string($con);
- foreach($xml->Item as $v){
- $arr=(array)$v->attributes();
- $ar[]=$arr['@attributes'];
- }
PHP读取XML
最新推荐文章于 2021-03-09 23:45:37 发布