Display the drop-down list

image_type_to_extension()

« ignore_user_abort | image_type_to_mime_type »
<?php
$string 
image_type_to_extension (
    
?// int $imagetype
    
?  // [bool $include_dot = TRUE]
);
?>
Result
$string = '.gif'
Examples
#1 image_type_to_extension  (IMAGETYPE_GIF)