----- Original Message -----
From: "Neil Zanella" <[EMAIL PROTECTED]>
To: "Hsieh, Wen-Yang" <[EMAIL PROTECTED]>
Cc: "PHP General Mailing List" <[EMAIL PROTECTED]>
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
>


-- 
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]

Reply via email to