Getting an Image's MIME Type : image_type_to_mime_type « Graphics Image « PHP






Getting an Image's MIME Type

 
<?php
    $info = getimagesize("button.png");
    print image_type_to_mime_type($info[2]);
?>
  
  

Related examples in the same category