public static function getType($extension) {
        foreach (self::$map as $mime => $exts) {
            if (in_array(strtolower($extension), $exts)) {
                return $mime;
            }
        }
        return null;
    }
public static function getType($extension) {
        foreach (self::$map as $mime => $exts) {
            if (in_array(strtolower($extension), $exts)) {
                return $mime;
            }
        }
        return null;
    }
public static function getType ( $ extension ) { foreach ( self :: $ map as $ mime => $ exts ) { if ( in_array ( strtolower ( $ extension ) , $ exts ) ) { return $ mime ; } } return null ; }
Retruns MIME type belonging to given file extension or null if not found.

@static
@param $extension
@return null|string
Retruns MIME type belonging to given file extension or null if not found .