src/helpers/FileHelper.php
public static function getContentMimeType($content)
    {
        $finfo = finfo_open(FILEINFO_MIME_TYPE);
        $mimeType = finfo_buffer($finfo, $content);
        finfo_close($finfo);

        return $mimeType;
    }
public static function getContentMimeType($content)
    {
        $finfo = finfo_open(FILEINFO_MIME_TYPE);
        $mimeType = finfo_buffer($finfo, $content);
        finfo_close($finfo);

        return $mimeType;
    }
public static function getContentMimeType ( $ content ) { $ finfo = finfo_open ( FILEINFO_MIME_TYPE ) ; $ mimeType = finfo_buffer ( $ finfo , $ content ) ; finfo_close ( $ finfo ) ; return $ mimeType ; }
Returns the MIME-type of content in string.
@param string $content
@return string Content mime-type
Returns the MIME - type of content in string .