Display the drop-down list

exif_imagetype()

« escapeshellcmd | exif_read_data »
<?php
$int 
exif_imagetype (
    
  // string $filename
);

// displays the constant name
$name pbx_get_constant_name($int"IMAGETYPE"true);
?>
Result
$int = 2
$name = 'IMAGETYPE_JPEG'
Examples
#1 exif_imagetype  ("https://upload.wikimedia.org/wikipedia/commons/thumb/2/26/Political_World_Map_in_Official_Language.jpg/320px-Political_World_Map_in_Official_Language.jpg")
See also
getimagesize, image_type_to_mime_type, pbx_get_constant_name