Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #12655
| From | Denis McMahon <denismfmcmahon@gmail.com> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: switch with range of comparisons |
| Date | 2014-01-14 01:36 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <lb24av$k2a$7@dont-email.me> (permalink) |
| References | <19ycnlnq3bdux$.jp8vxofzg98i.dlg@40tude.net> <lb20e8$muh$1@dont-email.me> |
On Tue, 14 Jan 2014 00:30:00 +0000, Beauregard T. Shagnasty wrote:
> richard the sto0pid wrote:
>
>> switch ($value){
>>
>> case "A">="Z";
>>
>> }
>>
>> Would this be allowed?
>
> How will "A" ever be equal-to or greater-than "Z"?
>
>> What I want to do is to have one case for all 26 letters of the
>> alphabet without having to use ||.
>
> Why would you want to use switch for only one condition?
>
> Go to your local big box store and purchase a carton of Logic.
I think what richard meant to ask was:
will
case >=A && <=Z :
work
But he couldn't even figure that out, and he obviously didn't run my
example php program that attempted to show him that he was working from a
flawed understanding.
Oh well, roll on the fucked up code.
As for whether it will work or not, well I'm buggered if I can be arsed
to help richard any more. He can find out for himself.
And now for a special message to richard:
richard, your comprehension of how switch statements work is currently so
fucked up that you are presently incapable of coding one that does what
you want, even if it appears to do so under test conditions with the
limited test data that you feed it. I strongly suggest you take a
sabbatical from your project to learn basic php programming syntax before
doing any more work on your website. 50 years might do it, although with
your current record, it might be best to set aside at least 300.
--
Denis McMahon, denismfmcmahon@gmail.com
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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