title: What is the best and fastest way to check if the image is valid in PHP?
body: <p>What is the best and fastest way to check if the image is valid in PHP ?
  I need it to be able to check GIF, JPG as well as PNG images.</p>