Re: How to construct variable names ?!

From: Date: Sat, 25 Nov 2000 22:45:11 +0000
Subject: Re: How to construct variable names ?!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-27189@lists.php.net to get a copy of this message
>I have a string array like >$fuse >and get its values by >$fuse[0], $fuse[1], ... and so on > >how do i generate corresponding >variables like >$fuse1, $fuse2, ...and so on I use eval("\$fuse$i=$something;"); where $i is the counter. -- Morten Dreier http://www.pobox.com/~mdreier/

« previous php.general (#27189) next »