I have a large array of strings that look like this:
$xml->archdesc->accessrestrict->p
These strings represent possible items in an XML document. The "$xml" is shorthand for the object(SimpleXMLElement) created when I read the XML file with simplexml_load_file().
How can I actually interpret these as variables? I want to access the value of each of these strings as they exist in the document, but I can't seem to make this happen. I've tried using the $$ format, the ${} format, eval(), and so on but nothing seems to give me the contents of the variable; they just display my string as a string.
Do these not work for things that use the object operator? Do I have to escape those in some way? Anything that I'm missing?