src/Mimetypes.php
public static function fromExtension($extension)
	{
		$extension = strtolower($extension);

		return isset(static::$mimetypes[$extension])
			? static::$mimetypes[$extension]
			: null;
	}
public static function fromExtension($extension)
	{
		$extension = strtolower($extension);

		return isset(static::$mimetypes[$extension])
			? static::$mimetypes[$extension]
			: null;
	}
public static function fromExtension ( $ extension ) { $ extension = strtolower ( $ extension ) ; return isset ( static :: $ mimetypes [ $ extension ] ) ? static :: $ mimetypes [ $ extension ] : null ; }
Get a mimetype value from a file extension

@param string $extension File extension

@return string|null
Get a mimetype value from a file extension