Re: Parsing Phone Numbers

From: Date: Thu, 17 May 2001 03:10:32 +0000
Subject: Re: Parsing Phone Numbers
Groups: php.general 
Request: Send a blank email to php-general+get-53153@lists.php.net to get a copy of this message
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" <jason@thinkingman.org> 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: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list- > admin@lists.php.net >

« previous php.general (#53153) next »