0

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 :

enter image description here

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 !

benuuts
  • 119
  • 10

1 Answers1

1

You can call attributes() to get the attributes of your SimpleXMLObject.

For example:

$attr = $yourXmlObject->attributes();
echo $attr['image'];
Jason McCreary
  • 69,176
  • 21
  • 125
  • 169