def config(parameters, exclude=None):
    exclude = (exclude or [])
    if (not isinstance(parameters, dict)):
        raise AnsibleFilterError(('php_config expects a dict but was given a %s' % type(parameters)))
    [parameters.pop(key, None) for key in exclude]
    result = ''
    for key in sorted(parameters):
        parameter = config_parameter(parameters, key)
        if parameter:
            result += ('\n%s' % parameter)
    return result.lstrip()
def config(parameters, exclude=None):
    exclude = (exclude or [])
    if (not isinstance(parameters, dict)):
        raise AnsibleFilterError(('php_config expects a dict but was given a %s' % type(parameters)))
    [parameters.pop(key, None) for key in exclude]
    result = 
    for key in sorted(parameters):
        parameter = config_parameter(parameters, key)
        if parameter:
            result += ('\n%s' % parameter)
    return result.lstrip()