Re: PHP globals aren't really globals
| From: | Rog | Date: | Wed, 14 Feb 2001 15:12:44 +0000 |
| Subject: | Re: PHP globals aren't really globals | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-39638@lists.php.net to get a copy of this message | ||
Rasmus wrote:
I swore I would not have the same problem in PHP and thus the requirement for people to be explicit about using global variables inside functions. Hopefully it also forces a little bit of structure and organization on people.Hear, hear and thank you Rasmus. It seems to me that the several other ways folks have listed to solve this one example indicates that we don't really need the temporary convenience of wide open globals (temporary as in it doesn't end up very convenient when they create problems).
Visit the Gates Motel webgame:
http://www.gameslate.com/gatesmotel/