Re: Casting nulls
| From: | CPT John W. Holmes | Date: | Wed, 24 Sep 2003 15:53:14 +0000 |
| Subject: | Re: Casting nulls | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-163773@lists.php.net to get a copy of this message | ||
From: "Carl Furst" <carl@vote.com>
> IF $int is null and I have a test
>
> If($int < 1) {
> //do some foobar
> }
>
> will $int be evaluated as a zero? IF I cast (int) $int.. will that turn a
> null $int into a zero??
>
> Documentation aint too clear.
No idea what you're doing here, but you may want to look into the isset()
and/or empty() functions for identifying NULLs.
---John Holmes...