Re: Variables not set

From: Date: Fri, 26 Apr 2002 20:24:36 +0000
Subject: Re: Variables not set
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-94804@lists.php.net to get a copy of this message
On Friday, April 26, 2002, at 04:12 PM, Miguel Cruz wrote:
There is something called "global scope" which refers to all variables created outside of any function or object. Variables with global scope are then available anywhere outside of a function or object.
Is there a difference between the concept of "scope" and the concept of "namespace"? I see "scope" used in PHP and "namespace" used in Python, and while the rules are slightly different between the two of them (such as variables in the global namespace being accessible to a function definition in Python, but not in PHP), they seem to be comparable. Is this the case? Erik ---- Erik Price Web Developer Temp Media Lab, H.H. Brown pricee@hhbrown.com

« previous php.general (#94804) next »