I'll show some code to explain my self:
$bla="uga";
$m=new class;
$m->uga=Array("one","two");
now i want to acces to the 1st elemente of the array uga using a variable.
Like this would be easy:
$m->uga[0]
but i want something like this :
$m->$bla[0] wich is incorrect because it tries to get the property with the name of the 1st element of $bla. I tried something like :
${m->$bla}[0] wich is a sintax error.
Does anybody knows how to do it ?
-Paulo