($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
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
} //
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
3 matches
Mail list logo