note 100154 deleted from language.variables.scope by danbrown

From: Date: Mon, 17 Oct 2011 16:21:30 +0000
Subject: note 100154 deleted from language.variables.scope by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-183926@lists.php.net to get a copy of this message
Note Submitter: e dot klerks at i-bytes dot nl ---- Why would you want to use globals everywhere? The only reason I can think of, is that you are working on someone else's script. Anyway, this is a very dangerous practice, because if someone else uses your global variable for something, your program probably will not behave very well. Another problem is, that it is hard to debug. Where is the variable changed? Never use globals, if there are other possibilities. (Within your time of frame of ofcourse)

« previous php.notes (#183926) next »