note 26476 added to migration4.variables
| From: | jcjollant at hotmail dot com | Date: | Fri, 01 Nov 2002 01:22:53 +0000 |
| Subject: | note 26476 added to migration4.variables | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-38848@lists.php.net to get a copy of this message | ||
Just to clarify something that confused me at first :
global $var; does not declare $var as global, it should be read as "there is a global variable
that's called $var"
Hence, a global variable must be explicitely declared as "global" in ALL functions willing
to use it.
I guess I was expecting the opposite for some reasons.
--
http://www.php.net/manual/en/migration4.variables.php
http://master.php.net/manage/user-notes.php?action=edit+26476
http://master.php.net/manage/user-notes.php?action=delete+26476
http://master.php.net/manage/user-notes.php?action=reject+26476