In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jennifer)
wrote:
> I wanted to use is_null, but it isn't available in my version
> (4.0B2)
>
> What would be an equivalent? I'm fairly new to PHP.
>
> I was using isset, but sometimes it is set to Null.
>
> Null values are unacceptable, but zero is a perfectly acceptable
> value for what I want.
Untested, but I think this should work:
if(empty($val) and $val !==0 and $val !=='')
{
echo 'null';
}
--
CC
--
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]