title: Value being inserted as 2147483647 into database
body: <p>All phone numbers I am trying to enter into my database are being inserted as <code>2147483647</code>.</p>
  
  <p>The database field is an <code>integer(11)</code>.</p>
  
  <p>Before the phone number is inserted, it goes through the following code  in order to remove all spaces, dashes, and brackets:</p>
  
  <pre><code>if (!empty($hphone)) $phone = $hphone;
  else if (!empty($HomePhone)) $phone = $HomePhone;
  else if (!empty($Phone1)) $phone = $Phone1;
  $phone = preg_replace("/[^0-9]/", "", $phone);
  </code></pre>
  
  <p>Why is it inserting the phone number as <code>2147483647</code> every time, no matter what the phone number is?</p>