how to access an object (simpleXML) variable name using a string?
Posted
by significance
on Stack Overflow
See other posts from Stack Overflow
or by significance
Published on 2010-05-08T13:08:25Z
Indexed on
2010/05/08
13:18 UTC
Read the original article
Hit count: 117
i need to access a simplexml object using a string. ie.
$x->a->b = 'obj';
$s = 'a->b';
echo $x->$s;
but it doesn't seem to work...
please help!
:)
© Stack Overflow or respective owner