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 #182682 is a reply to message #182681] Mon, 26 August 2013 20:51 Go to previous messageGo to previous message
Fiver is currently offline  Fiver
Messages: 35
Registered: July 2013
Karma:
Member
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
[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: Sun Dec 01 06:22:03 GMT 2024

Total time taken to generate the page: 0.04343 seconds