lol .. yeah .. i just found it. that's what i get for asking for help to quickly 🙂
answer would be
$phone = '5555551212';
$area_code = substr($phone,0,3); //takes 1st three
$prefix = substr($phone,3,3); //go out 3 digits and take 3 digits
$suffix = substr($phone,6); //go out six digits and show till end
//now piece it back together.
echo '(' . $area_code . ') ' . $prefix . '-' . $suffix . '';
should display at (555) 555-1212
well at least it's here for someone else now 🙂
thanks,
chris