Re: [PHP] define constants within functions?

2004-08-10 Thread Justin French
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

RE: [PHP] define constants within functions?

2004-08-10 Thread Jay Blanchard
[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,

[PHP] define constants within functions?

2004-08-10 Thread Justin French
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.