title: Fastest way to convert string to integer in PHP
body: <p>Using PHP, what's the fastest way to convert a string like this: <code>"123"</code> to an integer?</p>
  
  <p>Why is that particular method the fastest? What happens if it gets unexpected input, such as <code>"hello"</code> or an array?</p>