php and xml coding help

How can I get it so the following work:
[b]echo utf8_decode($xml->healings[0]->$xmla[0]->descrip[0]); // NOT work
echo utf8_decode($xmlb); // NOT work

[php]

<?php $xml = simplexml_load_file('extra.xml'); $xmla = "test"; $xmlb = "$xml->healings[0]->".$xmla."[0]->descrip[0]"; echo utf8_decode($xml->healings[0]->test[0]->descrip[0]); // works echo utf8_decode($xml->healings[0]->$xmla[0]->descrip[0]); // NOT work echo utf8_decode($xmlb); // NOT work ?>

[/php][/b]

Sponsor our Newsletter | Privacy Policy | Terms of Service