On Thu, Apr 15, 2004 at 04:31:09PM -0500, BOOT wrote: > Thanks for any help, even if you just suggest built in functions to look at. > > I'm looking for a way to take a 7 digit number and put it into xxx-xxxx > format. > > So basically the logic is to count 3 characters into $number and insert a > "-" there.
substr_replace($string, '-', 3, 0); - Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php