SimpleXMLElement - get an attribute of a node

Ps3gamer7

New Member
I have a SimpleXMLObject \[code\]$node\[/code\], which contains an array 'data' which i have to retrieve, but i don't know how. i've with \[code\]$node['data']\[/code\] but it doesn't work. any help?Maybe it's simple but i don't know how to do it quickly..Edit: sample code\[code\]foreach ($xmlObject->children() as $node) { if($node->getName() == 'URL_web_images'){ // here i have a $node that contains an array named 'URL_web_image', how to access to it? }}\[/code\]
 
Back
Top