On 25 Feb 2001 00:01:30 -0800, Mark Maggelet <[EMAIL PROTECTED]> wrote:
>On Sat, 24 Feb 2001 17:51:07 +0100, Christian Reiniger
>([EMAIL PROTECTED]) wrote:
>>On Saturday 24 February 2001 17:18, PHPBeginner.com wrote:
>>> in my preceding email I've written:
>>>
>>> if($var!='')
>>>
>>> will fix your all your worries without an intervention of a
>strings
>>> function.
>>
>>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!=""))
Isn't this a bit more legible:
if (!empty($var))
--
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]