Phone formatting depending on country with + sign

Phone formatting depending on country with + sign

I have some 25.000 Phone number like 9876543210    to be converted to +98-76543210
similar                                                  like 234567890      to be converted to +234-567890
so it depends on the country... two or three.. beginning letters is  the country number.

How to this ?