Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP Begins)
[EMAIL PROTECTED]
www.phpbeginner.com
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 22, 2001 1:56 AM
To: Jason Murray; [EMAIL PROTECTED]
Subject: Re: [PHP] Variable Stran
or...
that forces the comparison to be compared as a string. this only has to be
done sometimes, usually php is quite good at determining what you want.
--
Chris Lee
Mediawaveonline.com
em. [EMAIL PROTECTED]
ph. 250.377.1095
ph. 250.376.2690
fx. 250.554.1120
"Jason Murray" <[EMAIL PROT
Addressed to: Jason Murray <[EMAIL PROTECTED]>
[EMAIL PROTECTED]
** Reply to note from Jason Murray <[EMAIL PROTECTED]> Wed, 21 Feb 2001 11:37:40
-0600
>
> Hi,
>
> I came across this:
>
> $confidential = 0;
> echo "$confidential " . ($confidential == "yes");
>
> In whic
> I came across this:
> $confidential = 0;
> echo "$confidential " . ($confidential == "yes");
> In which "0 1" was printed.
> Is there something I'm missing?
Yes. When comparing types, PHP generally typcasts one side
of the operand to the type of what is on the other side. So in
th
4 matches
Mail list logo