RE: [PHP] str_split()
| From: | Jay Blanchard | Date: | Thu, 12 Aug 2004 18:39:55 +0000 |
| Subject: | RE: [PHP] str_split() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-193623@lists.php.net to get a copy of this message | ||
[snip]
Do you know of a simular function that will split a string in the same
way.
I have phone numbers stored in a database in the format ##########. I
need
to display the number on the page in the format ###-###-####.
str_split()
worked perfectly for this. Is there another function?
[/snip]
http://www.php.net/substr