This question already has an answer here:
Sorry to bother you for that but I'm stuck with this for a while.. Usually it's not a problem but this time I really can't figure it out..
I want to access to that value :
I tried several things, but every time I get a null value x) ..
I'm sure it's simple as hell but I haven't pratice my PHP skills for a while and maybe I need a coffee
Thansk for your help !
</div>
You can call attributes()
to get the attributes of your SimpleXMLObject.
For example:
$attr = $yourXmlObject->attributes();
echo $attr['image'];