title: Is (int)$var same as intval($var)?
body: <blockquote>
    <p><strong>Possible Duplicates:</strong><br>
    <a href="https://stackoverflow.com/questions/239136/fastest-way-to-convert-string-to-integer-in-php">Fastest way to convert string to integer in PHP</a><br>
    <a href="https://stackoverflow.com/questions/1912599/php-is-there-any-particular-difference-between-intval-and-int">PHP: Is there any particular difference between intval and (int)?</a>  </p>
  </blockquote>
  
  
  
  <p>Is <code>(int)$var</code> same as <code>intval($var)</code> ?</p>
  
  <p>Apparently they both do the same thing.</p>
  
  <p>Is there any situation in which they would return different results?</p>