note 77245 added to language.variables.scope
| From: | wm at tellinya dot com | Date: | Tue, 21 Aug 2007 15:27:29 +0000 |
| Subject: | note 77245 added to language.variables.scope | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-129672@lists.php.net to get a copy of this message | ||
I've written a small tutorial here :
http://www.tellinya.com/art2/52/
about globals and a simple way to handle them by bringing all of them inside function scopes.
Hence you no longer have to worry about declaring globals as you write large functions that
may change often.
As I mentioned this should be used only where you need to use too many variables
to declare one by one in function header.
I only use this in a few functions I use for site but works great.
Hope it helps anyone! Any input is most welcome.
----
Server IP: 69.147.83.197
Probable Submitter: 81.196.77.225
----
Manual Page -- http://www.php.net/manual/en/language.variables.scope.php
Edit -- https://master.php.net/note/edit/77245
Del: integrated -- https://master.php.net/note/delete/77245/integrated
Del: useless -- https://master.php.net/note/delete/77245/useless
Del: bad code -- https://master.php.net/note/delete/77245/bad+code
Del: spam -- https://master.php.net/note/delete/77245/spam
Del: non-english -- https://master.php.net/note/delete/77245/non-english
Del: in docs -- https://master.php.net/note/delete/77245/in+docs
Del: other reasons-- https://master.php.net/note/delete/77245
Reject -- https://master.php.net/note/reject/77245
Search -- https://master.php.net/manage/user-notes.php