automatic format of foreign and domestic phone numbers


I’ve looked this one up and while i found lots of either one, i can’t find a script that’ll do both. We have a lot of international users and they don’t format it for us, so what’s entered maybe something like +11234567894 (as an example).

Could someone point me the right direction?