YouTip LogoYouTip

Php Image Type To Extension

# PHP image_type_to_extension - Get Image Extension [![Image 3: PHP Image Processing](#)PHP Image Processing](#) image_type_to_extension β€” Returns the corresponding file extension for a given image type. ### Syntax string image_type_to_extension ( int $imagetype [, bool $include_dot = TRUE ] ) Returns the file extension based on the given constant IMAGETYPE_XXX. ### Example Executing the above file will generate a test.png image in the current directory. [![Image 4: PHP Image Processing](#)PHP Image Processing](#)
← Php GetimagesizefromstringPhp Getimagesize β†’