On 11/08/2004, at 12:16 AM, Jay Blanchard wrote:
They should be global already...
http://us3.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. For more
information on scope, read
[snip]
If I define a constant within a function, it appears that the constant
is only defined within the namespace of the function. Fair enough.
Can I globalise these definitions?
[/snip]
They should be global already...
http://us3.php.net/manual/en/language.constants.php
"Like superglobals,
If I define a constant within a function, it appears that the constant
is only defined within the namespace of the function. Fair enough.
Can I globalise these definitions?
---
Justin French
http://indent.com.au
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.
3 matches
Mail list logo