Re: Global Variables -- why not have them?

From: Date: Sat, 07 Jul 2001 18:59:07 +0000
Subject: Re: Global Variables -- why not have them?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-56659@lists.php.net to get a copy of this message
there are two sets of variables. global and local. you have to assume one and specify the other. in perl, global is assumed and you have to specify local. in php, local is assumed and you have to specify global. maybe you should be programming in perl. on 7/7/01 12:55 PM, Mitch Vincent at mvincent@cablespeed.com wrote: > I've been using PHP for several years now and one question has plagued > me the entire time. Why doesn't PHP have global variables? Before someone > says it, I do know PHP sort of does have global variables, but having to > specify GLOBAL in any function I want to see that variable in disqualifies > it from being a truly global variable IMHO.. > > I suppose I'm more curious than anything else.. Thanks! > > -Mitch > -- mike cullerton

« previous php.general (#56659) next »