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
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
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
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
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
5 matches
Mail list logo