Я работаю над приложением SMS и должен иметь возможность конвертировать номер телефона отправителя с +11234567890 в 123-456-7890, чтобы его можно было сравнить с записями в базе данных MySQL.
Цифры хранятся в последнем формате для использования в другом месте на сайте, и я бы предпочел не изменять этот формат, так как это потребовало бы изменения большого количества кода.
Как мне это сделать с PHP?
Спасибо!