note 80211 added to language.variables.scope
| From: | Christian at osu1 dot php dot net | Date: | Fri, 04 Jan 2008 11:50:11 +0000 |
| Subject: | note 80211 added to language.variables.scope | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-134761@lists.php.net to get a copy of this message | ||
####################
#
somefunction(){
global $var;
}
is the same as:
somefunction(& $a) {
}
#
####################
I feel the urge to be a "smart ass" here, sorry... =)
Beginners might not clearly see the analogy.
This is what the previous poster probably meant:
####################
#
somefunction(){
global $var;
}
is the same as:
somefunction(& $var) {
}
#
####################
----
Server IP: 217.160.72.57
Probable Submitter: 141.26.70.222
----
Manual Page -- http://www.php.net/manual/en/language.variables.scope.php
Edit -- https://master.php.net/note/edit/80211
Del: integrated -- https://master.php.net/note/delete/80211/integrated
Del: useless -- https://master.php.net/note/delete/80211/useless
Del: bad code -- https://master.php.net/note/delete/80211/bad+code
Del: spam -- https://master.php.net/note/delete/80211/spam
Del: non-english -- https://master.php.net/note/delete/80211/non-english
Del: in docs -- https://master.php.net/note/delete/80211/in+docs
Del: other reasons-- https://master.php.net/note/delete/80211
Reject -- https://master.php.net/note/reject/80211
Search -- https://master.php.net/manage/user-notes.php