Re: Formating a string to telephone format - (123) 456 - 7890
| From: | Ryan Adams | Date: | Mon, 26 Jun 2000 15:08:26 +0000 |
| Subject: | Re: Formating a string to telephone format - (123) 456 - 7890 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-3128@lists.php.net to get a copy of this message | ||
Do a search for the 'substr' function on the php site. It will list all of the
string functions. (PHP's got a great library for strings and arrays, I must say...)
Ryan
On Mon, Jun 26, 2000 at 09:19:13AM -0500, Sean Mathews wrote:
> Heya Guys
>
> This is surely very simple, but Im new. I need to create a function to
> format a variable length string to a telephone format. Thus 1234567890
> becomes (123) 456 - 7890, and 1234567 becomes 123 - 4567 etc etc. I havent
> been able to find any procedures to copy portions of strings. Please drop
> me a hint.
>
>
> --
> 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
---end quoted text---