title: When should one use intval and when int
body: <p>What is the better option:</p>
  
  <pre><code>// Option 1:
  $intValue = (int) $numericValue;
  
  // Option 2:
  $intValue = intval($numericValue);
  </code></pre>
  
  <p>Is there any difference between these two lines, and which should be used in which situation?</p>