title: Is there any particular difference between intval and casting to int - `(int) X`?
body: <p>Is there any particular difference between intval and (int)?</p>
  
  <p>Example:</p>
  
  <pre><code>$product_id = intval($_GET['pid']);
  $product_id = (int) $_GET['pid'];
  </code></pre>
  
  <p>Is there any particular difference between above two lines of code?</p>