API FileTools - chsxf/mfx GitHub Wiki
FileTools Class
class FileTools
Summary
File management helpers
Since 1.0
Methods
mimeTypeFromExtension
public static function mimeTypeFromExtension(string $ext): string
Get file MIME type
Since 1.0
Parameters
Name | Type | Description |
---|---|---|
$ext |
string |
File extension |
Returns
string