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

Home » Imported messages » comp.lang.php » CTYPE
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: CTYPE THREAD RESOLVED [message #182683 is a reply to message #182682] Mon, 26 August 2013 20:57 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 8/26/2013 4:51 PM, Fiver wrote:
> On 2013-08-26 21:19, The Natural Philosopher wrote:
>> On 26/08/13 19:07, Fiver wrote:
>>> For the Canadian zip codes:
> [snip]
>>> if (strlen($zip) == 7
>>> && $zip[3] == " "
>>> && ctype_alpha($zip[0] . $zip[2] . $zip[5])
>>> && ctype_digit($zip[1] . $zip[4] . $zip[6]))
>>> {
>>> echo "looks like a Canadian zip code\n";
>>> }
> [snip]
>
>> Now key in SW1A 1AA as a postcode and see what it does with it.
>
> It won't be recognized as a Canadian zip code, which is as it should be.
>
>> there is a world beyond north America.
>
> Meh, that's just a rumor.
> And even if there is, I heard that there be dragons.
>
> The question was about US and Canadian zip codes, so what's your point?
>
>
> regards,
> 5er
>

TNP just hates to be left out (of ANYTHING).


--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
[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
Previous Topic: Re: korean character sets
Next Topic: Android app Developers requirements
Goto Forum:
  

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

Current Time: Wed Sep 18 13:23:26 GMT 2024

Total time taken to generate the page: 0.04576 seconds