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
fromExtension()
Maps a file extensions to a mimetype.
public
static fromExtension(string $extension) : string|null
Parameters
- $extension : string
-
string The file extension.
Tags
Return values
string|null —fromFilename()
Determines the mimetype of a file by looking at its extension.
public
static fromFilename(string $filename) : string|null
Parameters
- $filename : string