note 74629 added to language.variables.scope

From: Date: Fri, 20 Apr 2007 20:21:07 +0000
Subject: note 74629 added to language.variables.scope
Groups: php.notes 
Request: Send a blank email to php-notes+get-125713@lists.php.net to get a copy of this message
For all you newbies!!! Just use $GLOBALS['variable name here'] when you want to change a variable value globally (anywhere in your code). And... Use your regular varible name $static_varible_name_here regularly for your static work without the static keyword in the scope of a function, etc. (since it will be static by default). WHY WASTE EXTRA TIME EXPLICITLY coding in 'global' and 'static'? PHP has already did all the hard work for us! CMON! Be a master coder not a master debator - om3gaflare ---- Server IP: 69.39.81.135 Probable Submitter: 71.110.204.134 ---- Manual Page -- http://www.php.net/manual/en/language.variables.scope.php Edit -- https://master.php.net/note/edit/74629 Del: integrated -- https://master.php.net/note/delete/74629/integrated Del: useless -- https://master.php.net/note/delete/74629/useless Del: bad code -- https://master.php.net/note/delete/74629/bad+code Del: spam -- https://master.php.net/note/delete/74629/spam Del: non-english -- https://master.php.net/note/delete/74629/non-english Del: in docs -- https://master.php.net/note/delete/74629/in+docs Del: other reasons-- https://master.php.net/note/delete/74629 Reject -- https://master.php.net/note/reject/74629 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#125713) next »