Re: globals in functions

From: Date: Mon, 15 Apr 2002 15:48:46 +0000
Subject: Re: globals in functions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-93029@lists.php.net to get a copy of this message
On Saturday, April 13, 2002, at 01:37 PM, Paul Roberts wrote:
Is there a quick way to set all variables as global so that they are avalible to a function, i'm doing an eval inside, so i need all the submitted variables to be avalible, or do i have to decalre them individualy.
If you refer to a POST or GET (or COOKIE or SESSION or SERVER) variable as $_POST['variablename'] or $_GET['variablename'], then it will automatically be global. In PHP 4.1.x or later Erik ---- Erik Price Web Developer Temp Media Lab, H.H. Brown pricee@hhbrown.com

« previous php.general (#93029) next »