note 52927 added to function.eval
| From: | tristan at moviesoundclips dot net | Date: | Tue, 17 May 2005 22:07:57 +0000 |
| Subject: | note 52927 added to function.eval | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-89565@lists.php.net to get a copy of this message | ||
Correction for that last entry:
Creating a dynamic variable name in PHP does not require the eval() function (unlike javascript).
eg.
for($x = 0; $x < 3; ++$x){
echo("form.txtNum".$x.".value =
'".(${"txtName".$x})."';");
}
----
Manual Page -- http://www.php.net/manual/en/function.eval.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52927
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52927&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52927&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52927&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52927&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52927&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52927&report=yes
Search -- http://master.php.net/manage/user-notes.php