RE: [PHP] creating array on variable variable (bug?)

2001-03-15 Thread Mahmoud Abu-Wardeh
($talltorp); $i++){ echo $talltorp[$i]; } ? -Original Message- From: Tobias Talltorp [mailto:[EMAIL PROTECTED]] Sent: 16 March 2001 00:15 To: [EMAIL PROTECTED] Subject: [PHP] creating array on variable variable (bug?) Hello all. Howcome I can create an array on a variable variable u

[PHP] creating array on variable variable (bug?)

2001-03-15 Thread Tobias Talltorp
Hello all. Howcome I can create an array on a variable variable using array(), but not in a for-loop (See code below)? ? $name = "talltorp"; $$name = array(1,2,3,4); // -- this works for ($i=0; $i10; $i++) { // $$name[] = $i;// -- this does not work } //

Re: [PHP] creating array on variable variable (bug?)

2001-03-15 Thread Tobias Talltorp
From: Tobias Talltorp [mailto:[EMAIL PROTECTED]] Sent: 16 March 2001 00:15 To: [EMAIL PROTECTED] Subject: [PHP] creating array on variable variable (bug?) Hello all. Howcome I can create an array on a variable variable using array(), but not in a for-loop (See code below)? ? $name