extracting array elements
Posted: Mon Aug 06, 2007 2:47 pm
hi there,
this is a kind of array i get after i have parsed my xml.
now i wanted to extract data from this array:
name and cdata elements needs to be extracted.any ideas?
hawleyjr | Please use
this is a kind of array i get after i have parsed my xml.
now i wanted to extract data from this array:
name and cdata elements needs to be extracted.any ideas?
Code: Select all
[2] => Array
(
[name] => DELIVERY
[attrs] => Array
(
)
[children] => Array
(
[0] => Array
(
[name] => PACKAGEREFERENCENUMBER
[attrs] => Array
(
)
[children] => Array
(
[0] => Array
(
[name] => CODE
[attrs] => Array
(
)
[cdata] => IK
)
[1] => Array
(
[name] => VALUE
[attrs] => Array
(
)
[cdata] => 66759
)
)
)hawleyjr | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]