this was just asked yesterday...if you have a phone number and it has 10 digits,
then use easily use substr to add slashes at the right points...same for the other
number...
-jack
----- Original Message -----
From: "Jason Caldwell" <[EMAIL PROTECTED]>
Date: Wednesday, May 16, 2001 10:58 pm
Subject: [PHP] Parsing Phone Numbers
> 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
> automaticallyadd 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
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: php-list-
> [EMAIL PROTECTED]
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]