php - reformat #
php - reformat #
- Started
- Last post
- 1 Response
- ldww
anyone good with php? i have a problem.
i have a variable read from a db which contains a # formatted XXXXXXXXXX and i want to convert it to XXX-XXX-XXXX for display purposes on a site. anyone know how to do it?
i thought about using LEFT to crop it into 3 variables and then concating them together, but that would get messy.
- ldww0
anyone? there has to be some PHP wizzzards out there