protected function generateIniString($array)
    {
        $iniString = "";

        foreach ($array as $key => $value) {
            if (is_array($value)) {
                $iniString .= "[{$key}]".PHP_EOL;
                $iniString .= $this->generateIniString($value);
            } else {
                $iniString .= "{$key}={$value}".PHP_EOL;
            }
        }

        return $iniString;
    }
protected function generateIniString($array)
    {
        $iniString = "";

        foreach ($array as $key => $value) {
            if (is_array($value)) {
                $iniString .= "[{$key}]".PHP_EOL;
                $iniString .= $this->generateIniString($value);
            } else {
                $iniString .= "{$key}={$value}".PHP_EOL;
            }
        }

        return $iniString;
    }
protected function generateIniString ( $ array ) { $ iniString = "" ; foreach ( $ array as $ key => $ value ) { if ( is_array ( $ value ) ) { $ iniString .= "[{$key}]" . PHP_EOL ; $ iniString .= $ this -> generateIniString ( $ value ) ; } else { $ iniString .= "{$key}={$value}" . PHP_EOL ; } } return $ iniString ; }
Generates an INI string from a given associative array.

@param array $array the array containing the INI data.
@return string
Generates an INI string from a given associative array .