Documentation

MimeType
in package

Table of Contents

fromExtension()  : string|null
Maps a file extensions to a mimetype.
fromFilename()  : string|null
Determines the mimetype of a file by looking at its extension.

Methods

fromFilename()

Determines the mimetype of a file by looking at its extension.

public static fromFilename(string $filename) : string|null
Parameters
$filename : string
Return values
string|null

Search results