Sure, define them outside the function :)
Justin French [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
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]
Sure, define them outside the function :)
[/snip]
I have not tried this (we usually place constants in a section of the
code external to any function) but are you saying that if a constant is
defined within the bounds of a function it is not global?
--
PHP General Mailing List
On Wed, 11 Aug 2004 06:54:35 -0500, Jay Blanchard
[EMAIL PROTECTED] wrote:
[snip]
Sure, define them outside the function :)
[/snip]
I have not tried this (we usually place constants in a section of the
code external to any function) but are you saying that if a constant is
defined within
3 matches
Mail list logo