Formatting Number with Regular Expression and PHP preg_replace
Hi,
I would like to add a “dash” after every 3 digits in a given numbers (10 digits). For example, 9785678941 became 978-567-894-1. How could I achieve this with regular expression by using PHP preg_replace?
Thank you.
