title: PHP typecasting
body: <p>I was wondering what is the best way to typecast a value from one type to another.</p>
  
  <p>Which variant should we use:</p>
  
  <ol>
  <li><code>intval($value);</code></li>
  <li><code>settype($value, 'int')</code></li>
  <li><code>(int)$value</code></li>
  </ol>
  
  <p>All of them produce same result.</p>