Re: Global Variables -- why not have them?

From: Date: Mon, 09 Jul 2001 00:43:29 +0000
Subject: Re: Global Variables -- why not have them?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-56799@lists.php.net to get a copy of this message
Mitch Vincent wrote:
I appreciate the reply, thanks.. However, I think you missed my question. My question is a why, not a how question.. It's a language feature I've come to count on with the other languages I work with (C, mainly), and I'm wondering what prompted the decision to move towards having to specify global variables (and essentially eliminating global variables). I don't want anyone to take this as a flame of PHP -- it's by far the language that I do most of my work in, it's a great language and I love it. None of that changes my curiosity about the global variable question :-) On an off-topic note, I very much dislike Perl -- I'm more of a Ruby kind of person *grin*.. Again, thanks... -Mitch
There's an old post of Rasmus' someplace in the archive which details WHY it's implemented this way. Personally, it just makes more sense to me to do it this way, but that's just me. Michael Kimsal http://www.tapinternet.com/php/ PHP training courses 734-480-9961

« previous php.general (#56799) next »