PHP Manual

PHP function image_type_to_extension()

2019-09-11T08:04:03.000Z

Obsah článku

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

Jan Barášek   Více o autorovi

Autor článku pracuje jako seniorní vývojář a software architekt v Praze. Navrhuje a spravuje velké webové aplikace, které znáte a používáte. Od roku 2009 nabral bohaté zkušenosti, které tímto webem předává dál.

Rád vám pomůžu:

Související články

1.
50.

V jiných jazycích

Status:
All systems normal.
2025