RE: [PHP] Re: correct syntax

2003-06-25 Thread Ford, Mike [LSS]
> -Original Message- > From: Chris Hayes [mailto:[EMAIL PROTECTED] > Sent: 25 June 2003 12:02 > > At 10:08 25-6-03, you wrote: > > >Harry Wiens wrote: > >>What would be the correct syntax? > >>1. $_SESSION[test] > > > >in this case "test" is a constant and must be defined > >by calling de

Re: [PHP] Re: correct syntax

2003-06-25 Thread Hidayet Dogan
On Wed, 25 Jun 2003, Chris Hayes wrote: > At 10:08 25-6-03, you wrote: > > > >Harry Wiens wrote: > >>What would be the correct syntax? > >>1. $_SESSION[test] > > > >in this case "test" is a constant and must be defined > >by calling define("test", some_integer_value) before > > But PHP is extremel

Re: [PHP] Re: correct syntax

2003-06-25 Thread Chris Hayes
At 10:08 25-6-03, you wrote: Harry Wiens wrote: What would be the correct syntax? 1. $_SESSION[test] in this case "test" is a constant and must be defined by calling define("test", some_integer_value) before But PHP is extremely tolerant and if it cannot find a defined constant called test, or i

[PHP] Re: correct syntax

2003-06-25 Thread dorgon
Harry Wiens wrote: What would be the correct syntax? 1. $_SESSION[test] in this case "test" is a constant and must be defined by calling define("test", some_integer_value) before 2. $_SESSION['test'] this is correct. but variables will not be equaled in the string. so when using '' brackets, you