Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Brian Flanagan
October 22, 2009, 3:13 pm
rate this thread
Hi all. Dealing with what is probably quite the noob issue here...
I'm loading an xml string using 'simplexml_load_string' and I'm
getting an object with several members listed as '@attributes'. I
need to be able to access these members, but when I try to use
something along the lines of "$obj->property->@attributes", I get a
"Parse error: parse error, expecting `T_VARIABLE' or `'$'' in..."
I'm assuming PHP doesn't like the '@' sign. Is there anyway to access
object members with special characters like this?
- Captain Paralytic
October 22, 2009, 3:28 pm