Skip to content

Kirby 4.5.0

Mime::toExtension()

Returns the extension for a given MIME type

Mime::toExtension(?string $mime = null): string|false

Parameters

Name Type Default
$mime string|null null

Return type

string|false

Parent class

Kirby\Filesystem\Mime