Re: How to construct variable names ?!
| From: | Duccio Gasparri | Date: | Sat, 25 Nov 2000 19:44:16 +0000 |
| Subject: | Re: How to construct variable names ?! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-27166@lists.php.net to get a copy of this message | ||
At 20.31 25/11/00 +0100, Juergen Hall wrote:
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 ontry this: $num=count($fuse) for($i=0;$i<$num;$i++) { parse_str("fuse".$i."=".$fuse[$i]); } Best regards, Duccio.
??? jyrgen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net