title: PHP/MYSQL converting unsigned int to signed int
body: <p>in mysql:</p>
  
  <pre><code>select CAST(17640478426339470149 as SIGNED INTEGER); #-806265647370081467
  </code></pre>
  
  <p>in php:</p>
  
  <pre><code>echo sprintf("%d", 17640478426339470149); #-806265647370082304
  </code></pre>
  
  <p>how I will get same signed int ? (and why this difference occurs?)</p>