我在php中使用了print_r()。PHP中的simplexml解析
SimpleXMLElement Object
(
[@attributes] => Array
(
[term] => hello world
[scheme] => Organization
)
)
如何使用php simplexml訪問方案節點?我有麻煩,因爲@符號
我在php中使用了print_r()。PHP中的simplexml解析
SimpleXMLElement Object
(
[@attributes] => Array
(
[term] => hello world
[scheme] => Organization
)
)
如何使用php simplexml訪問方案節點?我有麻煩,因爲@符號
如果您的對象被分配給名爲$ my_xml的變量,您可以通過$ my_xml ['term']和$ my_xml ['scheme']來訪問這兩個屬性。 http://php.net具有http://php.net/manual/en/simplexml.examples-basic.php
這裏你瑟如何http://php.net/manual/en/simplexml.examples-basic.php
下訪問對象,並使用simplexml的屬性$xml->object
$xml['attribute']
更基礎一些很好的例子