src/Budkit/Parameter/Repository/Parser/Ini.php
public static function toIniString($params = array(), $section = NULL)
    {

        $_br = "\n";
        $_tab = NULL; //Use "\t" to indent;
        $_globals = !empty($section) ? "\n[" . $section . "]\n" : '';

        foreach ($params as $param => $value) {
            if (!is_array($value)) {
                $value = static::normalizeValue($value);
                //BUG: Non alphanumeric value need to be stored in double quotes
                $_globals .= $_tab . $param . ' = ' . (Validate::isAlphaNumeric($value) ? $value : '"' . $value . '"') . $_br;
            }
        }
        return $_globals;
    }
public static function toIniString($params = array(), $section = NULL)
    {

        $_br = "\n";
        $_tab = NULL; //Use "\t" to indent;
        $_globals = !empty($section) ? "\n[" . $section . "]\n" : '';

        foreach ($params as $param => $value) {
            if (!is_array($value)) {
                $value = static::normalizeValue($value);
                //BUG: Non alphanumeric value need to be stored in double quotes
                $_globals .= $_tab . $param . ' = ' . (Validate::isAlphaNumeric($value) ? $value : '"' . $value . '"') . $_br;
            }
        }
        return $_globals;
    }
public static function toIniString ( $ params = array ( ) , $ section = NULL ) { $ _br = "\n" ; $ _tab = NULL ; //Use "\t" to indent; $ _globals = ! empty ( $ section ) ? "\n[" . $ section . "]\n" : '' ; foreach ( $ params as $ param => $ value ) { if ( ! is_array ( $ value ) ) { $ value = static :: normalizeValue ( $ value ) ; //BUG: Non alphanumeric value need to be stored in double quotes $ _globals .= $ _tab . $ param . ' = ' . ( Validate :: isAlphaNumeric ( $ value ) ? $ value : '"' . $ value . '"' ) . $ _br ; } } return $ _globals ; }
Converts a config array of elements to an ini string

@param type $params
@param type $section
@return string
Converts a config array of elements to an ini string