public static function from($filename)
    {
        $extension = strtok(pathinfo($filename, PATHINFO_EXTENSION), '?');

        return self::getMimeTypeFromExtension($extension);
    }
public static function from($filename)
    {
        $extension = strtok(pathinfo($filename, PATHINFO_EXTENSION), '?');

        return self::getMimeTypeFromExtension($extension);
    }
public static function from ( $ filename ) { $ extension = strtok ( pathinfo ( $ filename , PATHINFO_EXTENSION ) , '?' ) ; return self :: getMimeTypeFromExtension ( $ extension ) ; }
Get the MIME type for a file based on the file's extension.

@param  string  $filename
@return string
Get the MIME type for a file based on the file s extension .