You are here: Re: US phone number validation « PHP Programming Language « IT news, forums, messages
Re: US phone number validation

Posted by Michael Trausch on 04/15/06 06:02

NC wrote On 04/13/2006 12:02 PM:
> Richard Levasseur wrote:
>> Are you sure about that? Is 1 not the US/CA country code?
>
> Not exactly. When you call from outside North America, 1 is indeed the
> U.S. country code. When you call from the U.S. and the first number
> you dial is 1, it's a signal for the telephone exchange to switch from
> local to long-distance dialing. The exchange assumes that the 10
> digits after the 1 are a three-digit area code followed by a
> seven-digit phone number.
>

Almost, but it is a bit more complex then that. If you start your
number with '10', the next three digits are then assumed to be the
actual long distance carrier that you wish to use for placing a long
distance call. So the number string becomes 15 digits. Also, this only
works from a POTS landline. It could be used in a database to indicate
that it's cheaper to use AT&T, say, in one particular special example,
though it probably wouldn't be useful enough to figure in. Nonetheless,
I have had people that have fed me phone numbers in that crazy format
before and it was confusing. (Strange people.)

- Mike

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация