FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » switch with case 0
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: switch with case 0 [message #182591 is a reply to message #182590] Sat, 17 August 2013 07:29 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
On 17/08/13 07:35, J.O. Aho wrote:
> On 17/08/13 06:55, Fiver wrote:
>
>
>> I know how to avoid the problem, I'm just wondering what kind of
>> comparison is used that makes "foo" equal to 0? The manual mentions
>> "loose comparison", but this is even looser than usual.
>
> No it's not looser than normally, PHP don't care so much about data
> types so it internally casts it just to make it easy for those who
> ain't so good at programming.
>
>

and bloody nigh impossible for those who are..



--
Ineptocracy

(in-ep-toc’-ra-cy) – a system of government where the least capable to lead are elected by the least capable of producing, and where the members of society least likely to sustain themselves or succeed, are rewarded with goods and services paid for by the confiscated wealth of a diminishing number of producers.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: AND and OR
Next Topic: Compiling PHP 5.x on Cygwin
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 11:43:56 GMT 2024

Total time taken to generate the page: 0.04824 seconds