Begging the hero to help PHP get the XML node data small problem
My little brother is too much food, I want to get =express, When the =530000 The value, the eldest brother to write a detailed code AH?
The data code is as follows:
8.0
22.0
3.0
8.0
Express
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
------Solution--------------------
page does not see =530000 Tags: The following is only the output of the entire structure. You can get the results by traversing your own judgment.
PHP Code
$xml =<<
8.0
22.0
3.0
8.0
Express
41864647
440000
181030917
3.0
10.0
EMS
130000,360000,500000,4 60000,370000,530000,520000,340000,510000,420000,450000,410000,110000,120000,430000,350000
181 030918
5.0
15.0
Express
XML, $con =simplexml_load_string ($xml);p rint_r ($con);