note 58448 added to function.include
| From: | ia at zoznam dot sk | Date: | Fri, 04 Nov 2005 14:26:01 +0000 |
| Subject: | note 58448 added to function.include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-98072@lists.php.net to get a copy of this message | ||
samba at wsu dot edu:
A little OT, but why the use of eval()???
This:
<?php
foreach ( $GLOBALS as $key => $value )
{
$$key = &$GLOBALS[ $key ];
}
?>
works much better.
Using variable variables (http://www.php.net/manual/en/language.variables.variable.php).
----
Manual Page -- http://www.php.net/manual/en/function.include.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+58448
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58448&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58448&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58448&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58448&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58448&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58448&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58448&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+58448&report=yes
Search -- http://master.php.net/manage/user-notes.php