可能重複:
Able to see a variable in print_r()'s output, but not sure how to access it in code解析XML陣列PHP
SimpleXMLElement Object
(
[Header] => SimpleXMLElement Object
(
)
[Body] => SimpleXMLElement Object
(
[CreateUserResponse] => SimpleXMLElement Object
(
[username] => anup_165
[password] => xnrrtgohgv
[result] => SimpleXMLElement Object
(
[succeeded] => true
[errorCode] => 0
[errorText] => SimpleXMLElement Object
(
)
)
)
)
)
我想獲取用戶名,密碼,並從上述陣列