is there a way to get the xml value by curly brackets?
For example I want to get the value of test->test_test
and want to archieve this with the xml object variable. The path of the value inside the xml object comes from the database.
$xml_path = 'test->test_test';
echo $xml_obj->{$xml_path};
Also not working:
$xml_path = '{test}->{test_test}';
echo $xml_obj->{$xml_path};
Here I got the following error:
Serialization of 'SimpleXMLElement' is not allowed