Gen. partnerAlgotech

PHP function image_type_to_extension()

Get file extension for image type

|
September 11, 2019

Availability in PHP 5.0

Get file extension for image type

Parameters

Parameter Data type Default value Note
$imagetype int not One of the IMAGETYPE_XXX constant.
$include_dot bool null Whether to prepend a dot to the extension or not. Default to true.

Return values

string

A string with the extension corresponding to the given image type.

Other resources

Official documentation for image-type-to-extension

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.