跪求大侠帮助 php获取xml节点数据的小疑点

WBOY
Release: 2016-06-13 13:18:15
Original
979 people have browsed it

跪求大侠帮助 php获取xml节点数据的小问题
小弟太菜了,我想获取 =express, =530000时的 的值,那位大哥给写个详细的代码啊?

数据代码如下:



8.0
22.0
3.0
8.0
快递
41864647


440000
181030917
3.0
10.0
ems

130000,360000,500000,460000,370000,530000,520000,340000,510000,420000,450000,410000,110000,120000,430000,350000
181030918
5.0
15.0
express





------解决方案--------------------
页面并没有看到 =530000的标签。。以下只是输出全部结构。你自己遍历判断一下就可以得到结果。。

PHP code
$xml=   8.0 22.0 3.0 8.0 快递 41864647   440000 181030917 3.0 10.0 ems   130000,360000,500000,460000,370000,530000,520000,340000,510000,420000,450000,410000,110000,120000,430000,350000 181030918 5.0 15.0 express     xml; $con=simplexml_load_string($xml); print_r($con); 
Copy after login

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn