Class MimeType
Methods Summary
-
static
fromFilename ( string $filename )
Determines the mimetype of a file by looking at its extension.
-
static
fromExtension ( string $extension )
Maps a file extensions to a mimetype.
Methods Details
static string|null fromFilename ( string $filename )
Determines the mimetype of a file by looking at its extension.
Parameters
string | $filename |
Returns
string|null |
static string|null fromExtension ( string $extension )
Maps a file extensions to a mimetype.
Parameters
string | $extension | string The file extension. |
Returns
string|null |