Re: [PHP] Re: define()

2012-06-16 Thread Ashley Sheridan
On Sat, 2012-06-16 at 07:09 -0500, Karl DeSaulniers wrote: On Jun 16, 2012, at 6:39 AM, Maciek Sokolewicz wrote: On 16-06-2012 08:36, Karl DeSaulniers wrote: Quick question phprz. Is it ok to put a token inside a define() statement? IE: define('TOKEN', $sometoken); I guess

Re: [PHP] Re: define()

2012-06-16 Thread tamouse mailing lists
On Sat, Jun 16, 2012 at 7:17 AM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Sat, 2012-06-16 at 07:09 -0500, Karl DeSaulniers wrote: On Jun 16, 2012, at 6:39 AM, Maciek Sokolewicz wrote: On 16-06-2012 08:36, Karl DeSaulniers wrote: Quick question phprz. Is it ok to put a token

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