title: PHP ImageMagick getImageType returns array... how to associate with type?
body: <p>The PHP ImageMagick function getImageType returns an array number, but I can't find any documentation as to how to actually associate this with a type. </p>
  
  <p>I need to know if it's a png, jpg, gif, etc...</p>
  
  <pre><code>$image = new Imagick("test.png");
  $ext = $image-&gt;getImageType();
  
  // prints 6
  echo $ext
  </code></pre>