Dynamic var and array


I’ve got a little problèm with PHP that stalls me in building my flash/PHP/MySQL/PDF app…

First A flash movie allows you to create textfields and modifiy their layout. Then this flash movie sends data to PHP
One array giving the name of the other : textes = new Array(“texte1”,“texte2”,“texte3”);
and arrays texte1, texte2, texte3 which contains all the needed info on each textfield.

One in PHP, I need to use the data in those arrays to add the textfields to a PDF file I create on the fly.

My problem is :
I know the name of the first array containing the list of existing arrays (textes)

i can display this array using : print_r($textes);

I can display the textfields array (texte1, texte2, texte3) using :

for ($i=0;$i<count($textes);$i++) {

echo "&lt;br&gt;";


But I haven’t managed to display one value (the first one in the example) from the textfields array using :

for ($i=0;$i<count($textes);$i++) {

 echo "&lt;br&gt;";


what am i doing wrong?

Thanks in advance for any help / hint / advice.