getExtensionsByMimeType() public static method
Determines the extensions by given MIME type.
This method will use a local map between extension names and MIME types.
public static array getExtensionsByMimeType ( $mimeType, $magicFile = null ) | ||
---|---|---|
$mimeType | string |
File MIME type. |
$magicFile | string |
The path (or alias) of the file that contains all available MIME type information. If this is not set, the file specified by $mimeMagicFile will be used. |
return | array |
The extensions corresponding to the specified MIME type |
Please login to continue.