PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
dsdsdsdsd
Forum Commoner
Posts: 60 Joined: Fri Dec 05, 2003 3:10 pm
Post
by dsdsdsdsd » Thu Jun 24, 2004 11:34 am
hello;
I have:
I want to create variables:
Code: Select all
$aaa_string = "";
$bbb_string = "";
$ccc_string = "";
this loop will not do it though:
Code: Select all
for ($i=0 ; $i<count($array) ; $i++)
{ $arrayї$i] . "_string" = "";
}
any thoughts?
thanks
Shannon Burnett
Asheville NC USa
hawleyjr
BeerMod
Posts: 2170 Joined: Tue Jan 13, 2004 4:58 pm
Location: Jax FL & Spokane WA USA
Post
by hawleyjr » Thu Jun 24, 2004 11:58 am
try something like:
Code: Select all
${$arrayї0].'_string'} = '';
dsdsdsdsd
Forum Commoner
Posts: 60 Joined: Fri Dec 05, 2003 3:10 pm
Post
by dsdsdsdsd » Thu Jun 24, 2004 12:56 pm
thanks hawleyjr