← All docs

image_type_to_mime_type()

Returns the MIME type for an IMAGETYPE_* constant.

image_type_to_mime_type()

function image_type_to_mime_type(int $image_type): string

Returns the MIME type for an IMAGETYPE_* constant.

Parameters:

  • $image_type (int)

Returns: string

Availability

Compiled (AOT)Magician (eval)
AvailableNot available yet

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how image_type_to_mime_type is implemented in the compiler, see the internals page.