Bonjour, j'ai un code comme celui là :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
$a_b_c[2][2] = "10";
 
	$array1 = '[2]';
	$array2 = '[2]';
	$b = "b";
 
	echo ${'a_'.$b.'_c'.$array1.$array2};
        echo $a_b_c[2][2];
Le premier echo fonctionne, mais pas le second :

Notice: Undefined variable: a_b_c[2][2] in xxx on line xxx
Si vous pouriez me venir en aide

PS : quand j'enlève [2][2] et $array1.array2 ca fonctionne...