Lookup a single file extension by MIME type.
mixed Core_File::ext_by_mime( string $type )
参数列表
参数 类型 描述 默认值 $type
string
MIME type to lookup
mixed
First file extension matching or falsepublic static function ext_by_mime($type)
{
return current(File::exts_by_mime($type));
}