Re: [PHP] isset() and !=NULL

2004-03-28 Thread Dimiter Naydenov
David Risner" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]> On Fri, 26 Mar 2004 10:40:43 -0800, "Marcjon Louwersheimer" > <[EMAIL PROTECTED]> said: > > Is there an easier way to do > > isset($variable) AND $variable != NULL > > ? I use this alot in my if statements, and I was wonder

Re: [PHP] isset() and !=NULL

2004-03-26 Thread David Risner
On Fri, 26 Mar 2004 10:40:43 -0800, "Marcjon Louwersheimer" <[EMAIL PROTECTED]> said: > Is there an easier way to do > isset($variable) AND $variable != NULL > ? I use this alot in my if statements, and I was wondering if there's an > easier way to do it, maybe with a single function? Oh and anothe

Re: [PHP] isset() and !=NULL

2004-03-26 Thread Robert Cummings
On Fri, 2004-03-26 at 13:46, Rasmus Lerdorf wrote: > if(!empty($variable)) This will return false positives for cases where the variable has not been set to null but HAS been set to the empty string or to a 0? This isn't really the same as the OP requested. However, isset() also returns false for

Re: [PHP] isset() and !=NULL

2004-03-26 Thread Rasmus Lerdorf
if(!empty($variable)) On Fri, 26 Mar 2004, Marcjon Louwersheimer wrote: > Is there an easier way to do > isset($variable) AND $variable != NULL > ? I use this alot in my if statements, and I was wondering if there's an > easier way to do it, maybe with a single function? Oh and another > question

[PHP] isset() and !=NULL

2004-03-26 Thread Marcjon Louwersheimer
Is there an easier way to do isset($variable) AND $variable != NULL ? I use this alot in my if statements, and I was wondering if there's an easier way to do it, maybe with a single function? Oh and another question... how does if ($variable) work? When does it evaluate true? -- Marcjon -- PHP