F::extensions PHP Method

extensions() public static method

Returns all extensions for a certain file type
public static extensions ( string $type = null ) : array
$type string
return array
    public static function extensions($type = null)
    {
        if (is_null($type)) {
            return array_keys(static::$mimes);
        }
        return isset(static::$types[$type]) ? static::$types[$type] : array();
    }