选择语言 :

 Core_File::ext_by_mime

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 false
File: ./core/classes/file.class.php
public static function ext_by_mime($type)
{
	return current(File::exts_by_mime($type));
}