note 45838 added to language.functions

From: Date: Tue, 21 Sep 2004 03:41:46 +0000
Subject: note 45838 added to language.functions
Groups: php.notes 
Request: Send a blank email to php-notes+get-77087@lists.php.net to get a copy of this message
For people wishing to access all global variables within a function, and not wanting to define them each time, put this at the top of the function: foreach ($GLOBALS as $variable => $value) { ${$variable} = $value; } ---- Manual Page -- http://www.php.net/manual/en/language.functions.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+45838 Delete -- http://master.php.net/manage/user-notes.php?action=delete+45838&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+45838&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#77087) next »