|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-11-16 01:58 UTC] philip@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 05:00:01 2025 UTC |
In this example, i?m triying to recover an indeterminate number of vars from a form with the code below. The type of vars is like this: $var1, $var2, $var3, ... but the succesion can be incomplete like this $var1, $var5, $var6, ... for ($n=0; n<=10; $n++) { if (isset(eval("\$var".$n.";")) { [...] } } and the error message is: Parse error: parse error, unexpected T_EVAL, expecting T_VARIABLE or '$' in d:\inetpub\wwwroot\administracion\val_empextdb.php on line 14 Thanks.