Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to parse an 'xml_rpc_value Object'

Status
Not open for further replies.

cadbilbao

Programmer
Apr 9, 2001
233
ES
As a response of an XML-RPC server petition, I got this array:

---------------------------------------
xml_rpc_value Object
(
[me] => Array
(
[struct] => Array
(
[name] => xml_rpc_value Object
(
[me] => Array
(
[string] => John
)

[mytype] => 1
)

[phone] => xml_rpc_value Object
(
[me] => Array
(
[string] => 6008955
)

[mytype] => 1
)

)

)
)
----------------------------------------

How can I parse it in order to get 'name' and 'phone'? I use
PEAR XML_RPC package.

Thank you very much.
 
cadbillao-

What specifically are you trying to do? You can access the data inside the RPC array just as if its a nested array:

xml_rpc_value['me']['struct']['name']['me']['string']

Where did you get such a complex data structure in the first place?

Robert Carpenter
Remember....eternity is much longer than this ~80 years we will spend roaming this earth.
ô¿ô
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top