note 40443 added to language.variables.scope
| From: | jack at mvps dot removethis dot andthis dot org | Date: | Thu, 04 Mar 2004 00:12:12 +0000 |
| Subject: | note 40443 added to language.variables.scope | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-66214@lists.php.net to get a copy of this message | ||
From Chapter 8. Constants: http://www.php.net/manual/en/language.constants.php
"Like superglobals, the scope of a constant is global. You can access constants anywhere in
your script without regard to scope."
It wasn't readily obvious to me that constants were global. Always RTFM.
----
Manual Page -- http://www.php.net/manual/en/language.variables.scope.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+40443
Delete -- http://master.php.net/manage/user-notes.php?action=delete+40443&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+40443&report=yes
Search -- http://master.php.net/manage/user-notes.php