Posted by Nancy on 02/08/06 02:00
Greetings,
I'm trying to make use of XML returned from a url. Below is what is returned
using code found on php.net under xml_parse. Is there an easy way to capture
KEYS and VALUES as variables? COUNT is a KEY and 6692 is it's value.
Thanks for any pointers! nan
Array ( [0] => Array ( [name] => DATABAPP [attrs] => Array ( ) [children] =>
Array ( [0] => Array ( [name] => COUNT [attrs] => Array ( ) [tagData] =>
6692 ) [1] => Array ( [name] => PRICE [attrs] => Array ( ) [tagData] => 0 )
[2] => Array ( [name] => QUERYID [attrs] => Array ( ) [tagData] => 2376267 )
[3] => Array ( [name] => CAMPAIGN [attrs] => Array ( ) [tagData] => 1 ) [4]
=> Array ( [name] => RETURNCODE [attrs] => Array ( ) [tagData] => 0 ) [5] =>
Array ( [name] => RETURNMSG [attrs] => Array ( ) [tagData] =>
success ) ) ) )
Navigation:
[Reply to this message]
|