title: Formatting Phone Numbers in PHP
body: <p>I am working on an <em>SMS app</em> and need to be able to convert the sender's phone number from <em>+11234567890</em> to <em>123-456-7890</em> so it can be compared to records in a <em>MySQL database</em>. </p>
  
  <p>The numbers are stored in the latter format for use elsewhere on the site and I would rather not change that format as it would require modifying a lot of code.</p>
  
  <p><strong>How would I go about this with PHP?</strong></p>
  
  <p>Thanks!</p>