fromFilename() fromFilename(string $filename) : string|null Determines the mimetype of a file by looking at its extension. Parameters string $filename Returns string|null —
fromExtension() fromExtension(string $extension) : string|null Maps a file extensions to a mimetype. Parameters string $extension string The file extension. Returns string|null —