Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #12656

Re: switch with range of comparisons

From bill <william@TechServSys.com>
Newsgroups comp.lang.php
Subject Re: switch with range of comparisons
Date 2014-01-14 06:38 -0500
Organization Aioe.org NNTP Server
Message-ID <lb37j9$e6j$2@speranza.aioe.org> (permalink)
References <19ycnlnq3bdux$.jp8vxofzg98i.dlg@40tude.net> <XnsA2B4CFE053082dougmilmaccom@78.46.70.116>

Show all headers | View raw


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 !

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

switch with range of comparisons richard <noreply@example.com> - 2014-01-13 18:35 -0500
  Re: switch with range of comparisons Scott Johnson <noonehome@chalupasworld.com> - 2014-01-13 16:14 -0800
  Re: switch with range of comparisons "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> - 2014-01-14 00:30 +0000
    Re: switch with range of comparisons Denis McMahon <denismfmcmahon@gmail.com> - 2014-01-14 01:36 +0000
  Re: switch with range of comparisons "Peter H. Coffin" <hellsop@ninehells.com> - 2014-01-13 18:54 -0600
  Re: switch with range of comparisons Doug Miller <doug_at_milmac_dot_com@example.com> - 2014-01-14 01:26 +0000
    Re: switch with range of comparisons bill <william@TechServSys.com> - 2014-01-14 06:38 -0500
  Re: switch with range of comparisons daniel@honestempire.com - 2014-01-22 14:44 -0800
  Re: switch with range of comparisons Denis McMahon <denismfmcmahon@gmail.com> - 2014-01-23 00:18 +0000
    Re: switch with range of comparisons testmehere@gmail.com (Jason) - 2014-03-11 18:51 -0500

csiph-web