note 23375 deleted from function.eval by victor
| From: | victor@php.net | Date: | Sat, 12 Jun 2004 22:39:56 +0000 |
| Subject: | note 23375 deleted from function.eval by victor | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-71000@lists.php.net to get a copy of this message | ||
Note Submitter: taq@terra.com.br
----
I was trying to check a lot of form fields with a PHP loop, and made this way, suppose your form
fields are called p0,p1...p50, and you need to check all the values from 1 to 50, so:
for( $i=0; $i<50; $i++ )
{
$var = "";
eval( "\$var = \$p$i;" );
print $var; // give you the field value
}