note 10618 deleted from language.variables.scope by jimw
| From: | jimw@php.net | Date: | Sat, 08 Dec 2001 21:46:19 +0000 |
| Subject: | note 10618 deleted from language.variables.scope by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-22235@lists.php.net to get a copy of this message | ||
You can make function argument variables global:
function foo ($bar)
{
global $bar;
# ... more code.
}
Opposite to php3, php4 doesn't warn you if you do this.