Re: isset()
| From: | Christian Reiniger | Date: | Sun, 25 Feb 2001 11:05:15 +0000 |
| Subject: | Re: isset() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41577@lists.php.net to get a copy of this message | ||
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