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

Home » Imported messages » comp.lang.php » switch with range of comparisons
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: switch with range of comparisons [message #184643 is a reply to message #184641] Tue, 14 January 2014 11:38 Go to previous messageGo to previous message
bill is currently offline  bill
Messages: 310
Registered: October 2010
Karma:
Senior Member
On 1/13/2014 8:26 PM, Doug Miller wrote:

> }
>
>> What I want to do is to have one case for all 26 letters of the alphabet
>> without having to use ||.
>
> That won't do what you want. Neither will ||, for reasons that have already been explained.
>
> Why not just code a simple if statement to test if $value is between "A" and "Z" ?
>
>
>
>
>
should we tell richard about regex ?
no !
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: When a random file is not found then what?
Next Topic: [CM] Falkvinge: MtGox had custom SSHD written in PHP
Goto Forum:
  

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

Current Time: Mon Sep 30 04:13:11 GMT 2024

Total time taken to generate the page: 0.04406 seconds