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 #184727 is a reply to message #184636] Wed, 22 January 2014 22:44 Go to previous messageGo to previous message
daniel is currently offline  daniel
Messages: 1
Registered: January 2014
Karma:
Junior Member
On Monday, 13 January 2014 23:35:07 UTC, richard wrote:
> switch ($value){
>
>
>
> case "A">="Z";
>
>
>
>
>
> }
>
>
>
> Would this be allowed?
>
>
>
> What I want to do is to have one case for all 26 letters of the alphabet
>
> without having to use ||.

Take a look at preg_match() or ctype_alpha()

http://uk1.php.net/preg_match
http://www.php.net/manual/en/function.ctype-alpha.php
[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: Sun Nov 24 21:41:50 GMT 2024

Total time taken to generate the page: 0.04990 seconds