Re: superglobals inside of function declarations

From: Date: Fri, 31 Oct 2003 07:20:13 +0000
Subject: Re: superglobals inside of function declarations
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-5128@lists.php.net to get a copy of this message
This one time, at band camp, Derick Rethans <derick@php.net> wrote: > On Thu, 30 Oct 2003, Filip de Waard wrote: > > > Andy, > > > > I know the current possibilities and limitations, but i'm wondering why > > superglobals can't be used in function declarations. Is there a > > particular reason for this? > > Because PHP just only supports scalar constants there. why would you ever _want_ to? The purpose of a super global is that it is available in all scopes. Kevin -- ______ (_____ \ _____) ) ____ ____ ____ ____ | ____/ / _ ) / _ | / ___) / _ ) | | ( (/ / ( ( | |( (___ ( (/ / |_| \____) \_||_| \____) \____) Kevin Waterson Port Macquarie, Australia

« previous php.internals (#5128) next »