Jump to content

SimpleXMLElement Object -echo a value


tqla

Recommended Posts

How do I echo a single value on a SimpleXMLElement Object? For example "Tooltip Text 2".

 

SimpleXMLElement Object ( [pix] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [pic] => image1.png [alt] => Tooltip Text 1 [desc] => Content 1 ) ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [pic] => image2.png [alt] => Tooltip Text 2 [desc] => Content 2 ) ) ) ) 

 

Thanks.

Link to comment
https://forums.phpfreaks.com/topic/264022-simplexmlelement-object-echo-a-value/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.