Wow, I didn't know Angles could sing...:-) Sorry, bad attempt at humor.
-Original Message-
From: John S. Huggins [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 23, 2002 11:53 AM
To: Miguel Cruz
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] List, Key, Value oh my.
The Earth shook, A
The Earth shook, Angles sang, there was much rejoicing.
Behold Miguel is correct. === did the trick.
It sure is nice to know I am not going nuts.
Much thanks.
John
On Tue, 23 Apr 2002, Miguel Cruz wrote:
>-Amazing things happen when you compare values of different types. The
>-numerical v
Amazing things happen when you compare values of different types. The
numerical value of "Name" is zero. Try using === to compare type as well
as value.
miguel
On Tue, 23 Apr 2002, John S. Huggins wrote:
> I forgot to show you some output from this thing...
>
> ---{0,BLOW, JOE}---Name is BLOW
I forgot to show you some output from this thing...
---{0,BLOW, JOE}---Name is BLOW, JOE, Key = 0 |
---{Name,BLOW, JOE}---Name is BLOW, JOE, Key = Name |
---{1,YES}---1 |
---{2,}---
---{3,YES}---3 |
The way I see it, that first line should have not printed because $key is
equal to 0 not "Na
4 matches
Mail list logo