Parsing Phone Numbers
| From: | Jason Caldwell | Date: | Thu, 17 May 2001 02:58:17 +0000 |
| Subject: | Parsing Phone Numbers | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-53150@lists.php.net to get a copy of this message | ||
Is there a way I can modify a phone number programmatically -- for example,
if I have the following phone number:
1234567890
Now there are no "-" or "." separators... and I would like to automatically
add them when the user hits submit...
123-456-7890
Also, I would like to account for optional International Codes...
from 0001234567890
to 000-123-456-7890
Thanks
Jason