note 74629 deleted from language.variables.scope by colder
| From: | colder@php.net | Date: | Fri, 20 Apr 2007 20:31:55 +0000 |
| Subject: | note 74629 deleted from language.variables.scope by colder | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-125714@lists.php.net to get a copy of this message | ||
Note Submitter: om3gaflare at NOSPAM dot yahoo dot com
Reason: riiiight
----
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