Mimetype helper functions
$file = 'test.html';
$mimetype = system_extension_mime_type($file); //returns text/html
$ext = system_mime_type_extension('text/html'); //returns .html
Returns the mime type purely by file extension
Returns the file extension assoicated with the mime type
Language | php |
Version | 0.0.0 |
Git URL | https://github.com/nullivex/func-mimetype |
License | GPL-3.0 |
Description | Mimetype helper functions |
Keywords |