note 52343 modified in language.variables.scope by danbrown

From: Date: Mon, 18 May 2009 01:39:31 +0000
Subject: note 52343 modified in language.variables.scope by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-155569@lists.php.net to get a copy of this message
If you need all your global variables available in a function, you can use this: <?php function foo() { extract($GLOBALS); // here you have all global variables } ?> --was-- If you need all your global variables available in a function, you can use this: <? function foo() { extract($GLOBALS); // here you have all global variables } ?> http://php.net/manual/en/language.variables.scope.php

« previous php.notes (#155569) next »