note 39815 deleted from language.variables.scope by didou
| From: | didou@php.net | Date: | Mon, 19 Apr 2004 11:14:03 +0000 |
| Subject: | note 39815 deleted from language.variables.scope by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-68323@lists.php.net to get a copy of this message | ||
Note Submitter: To: rob g From: Hua.Qu
----
I think it is reasonable. Because if you define a static $a in function includetest(), its scope
spans included and required files as well, so the $a in the include.php is the $a in the function.
While you define $a in the include.php, its scope is just locally in the include.php.