Hello I have a phone number in it's E164 format
: +212640588740
and I want to convert it to it's international format
: +212 640-588740
.
There is this library http://code.google.com/p/libphonenumber/ that do this conversion very well but it requires a phone number and a country code witch I can't provide because I'm reading the phone to convert from DB.
Basically I want a script or library that takes the E164 as arguments and turns it into it's international standard format, like the following:
+212640588740 => +212 640-588740
+33336578668 => +33 3 36 57 86 68
+17877491410 => +1 787-749-1410
Any Ideas are welcome, Thank you in Advance.