Re: PHP newbie question
| From: | Hsieh, Wen-Yang | Date: | Wed, 10 Jan 2001 22:45:20 +0000 |
| Subject: | Re: PHP newbie question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-33819@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "Neil Zanella" <nzanella@cs.mun.ca>
To: "Hsieh, Wen-Yang" <wh033@csufresno.edu>
Cc: "PHP General Mailing List" <php-general@lists.php.net>
Sent: Wednesday, January 10, 2001 1:11 PM
Subject: Re: [PHP] PHP newbie question
>
> On Wed, 10 Jan 2001, Hsieh, Wen-Yang wrote:
>
> > "" is false.
>
> The following three seem to be the same in PHP3:
>
> 1) false
> 2) ""
> 3) 0
zero and an empty string were understood to be false. Still they are
different.
>
> I guess that "" is automatically cast to 0 or to false
> wherever an integer is required. Where can I find the
> exact casting rules in PHP3/4 ?
http://www.php.net/manual/language.types.type-juggling.php#language.types.ty
pecasting
>
> Thanks,
>
> Neil
>