dynamically creating variables
Posted: Thu Jun 24, 2004 11:34 am
hello;
I have:
I want to create variables:
this loop will not do it though:
any thoughts?
thanks
Shannon Burnett
Asheville NC USa
I have:
Code: Select all
$array = ("aaa","bbb","ccc");Code: Select all
$aaa_string = "";
$bbb_string = "";
$ccc_string = "";Code: Select all
for ($i=0 ; $i<count($array) ; $i++)
{ $arrayї$i] . "_string" = "";
}thanks
Shannon Burnett
Asheville NC USa