[PHP] Re: define constants within functions?

2004-08-11 Thread Aidan Lister
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?

RE: [PHP] Re: define constants within functions?

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

Re: [PHP] Re: define constants within functions?

2004-08-11 Thread Justin Patrin
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