Re: Are $_* always global

From: Date: Mon, 22 Sep 2003 14:53:25 +0000
Subject: Re: Are $_* always global
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-7972@lists.php.net to get a copy of this message
On 22 Sep 2003 at 11:42, Martin Marques wrote: > If I have a function and want to access data in $_SESSION or $_GET, do > I have to pass it as an argument or make it global? I thought I had > to, but just tried with a small example, doing a var_dump($_SERVER) > inside a function without defineing it as GROBAL and it have me the > information of the $_SERVER array. They are superglobal - meaning: always global. Can also be found in the docs on php.net. These were added since they are commonly used / needed. Stefan

« previous php.pear.general (#7972) next »