note 70299 deleted from language.variables.scope by colder
| From: | colder@php.net | Date: | Tue, 10 Oct 2006 22:19:41 +0000 |
| Subject: | note 70299 deleted from language.variables.scope by colder | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-118375@lists.php.net to get a copy of this message | ||
Note Submitter:
----
a little notice: in php 4.4.x when your PHP Code gets eval()'d (don't ask) global will
will only make the last var used global. Use a new global instruction for every var you want to make
global and save yourself some headache!
ex a:
global $a, $b, $c;
-> only $c appears to be global
ex b:
global $a;
global $b;
global $c;
-> all 3 vars are global
maybe it's just the messed up code i'm working on but you never know