HELP URGENT VARS !!!
| From: | Olivier Masudi | Date: | Fri, 30 Nov 2001 11:01:47 +0000 |
| Subject: | HELP URGENT VARS !!! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-76178@lists.php.net to get a copy of this message | ||
$name1=a; $name2=b;....
I want to do this
for($i=0;$i<$nbname;$i++)
echo "\$name$i";
output : a b ....
where "\$name$i" = $name1 , $name2 , $name3 ......
I try to print tha value of the vars $name1,..... not the string
$name1,....
Is it possible ????
REM : The vars $name1,.... com from a form where the number of name input
are variable.
Thank you