Re: put code into a function then the code dead,very strange.
| From: | Sharl.Jimh.Tsin | Date: | Tue, 02 Aug 2011 15:42:07 +0000 |
| Subject: | Re: put code into a function then the code dead,very strange. | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-314285@lists.php.net to get a copy of this message | ||
all right,Richard.i pretty agree with you and always think that NOT 'many'
but ALL languages should have Variety Scope.
And i do not want access the ALL variety in any function/page,as you said,
that's poor design.
I just feel a bit surprise that the function can not access the variety
which located and defined in the same/current page except the GLOBAL
modifier.(although the thinking is wrong in fact later)
That's all.