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 #182633 is a reply to message #182629] Mon, 19 August 2013 17:55 Go to previous messageGo to previous message
Thomas Mlynarczyk is currently offline  Thomas Mlynarczyk
Messages: 131
Registered: September 2010
Karma:
Senior Member
Norman Peelman schrieb:

> We are going in circles at this point... PHP just isn't made that way
> so I can't keep arguing about it.

Indeed. If I want PHP to change, I should file a feature request. But
even if everyone else agreed with me, my request would be rejected
"because it would break backwards compatibility". (An issue that might
be solvable by introducing a "strict" mode in PHP.)

> Technically speaking, there are only two STRING operators listed:
>
> . concatenation
> .= append
>
> ...everything else is function based for strings.

So, actually, operators like < or >= are not really meant for string
comparisons. Neither is switch. And with that in mind, things start to
look a bit clearer.

Greetings,
Thomas

--
Ce n'est pas parce qu'ils sont nombreux à avoir tort qu'ils ont raison!
(Coluche)
[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: Sun Nov 24 15:48:33 GMT 2024

Total time taken to generate the page: 0.05165 seconds