are you thinking of what this snippet does:
$menu = 'menu2';
$i = 2;
echo ${$menu}[$i];
- Original Message -
From: "Brandon Orther" <[EMAIL PROTECTED]>
To: "PHP User Group" <[EMAIL PROTECTED]>
Sent: 2001. május 7. 22:16
Subject: [PHP] Variabl
Hello,
I am trying to use variable variable. with arrays. this may be hard to
understand so here is an example:
$menu1[0] = "1";
$menu1[1] = "2";
$menu1[2] = "3";
$menu2[0] = "1";
$menu2[1] = "2";
$menu2[2] = "3";
$menu3[0] = "1";
$menu3[1] = "2";
$menu3[2] = "3";
does anyone know t
2 matches
Mail list logo