On Sunday 25 February 2001 09:01, Mark Maggelet wrote:

> >> if($var!='')
> >>
> >> will fix your all your worries without an intervention of a

> >Except that it will throw a warning in PHP4 if $var is not set.
> >=> isset () should be used.
>
> man, this is like the thread that will not die. isset() will return
> true for an empty string, which is not what he wants. the right thing
> to do is use
>
> if((isset($var))&&($var!=""))

I never said *only* isset() should be used :)

-- 
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)

"Never doubt that a small group of thoughtful, committed people can
change the world...
Indeed, it's the only thing that ever has."

- Margaret Mead

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to