classes/phing/tasks/ext/inifile/IniFileConfig.php
public function set($section, $key, $value)
    {
        foreach ($this->lines as &$line) {
            if ($line['type'] != 'entry') {
                continue;
            }
            if ($line['section'] != $section) {
                continue;
            }
            if ($line['key'] != $key) {
                continue;
            }
            $line['value'] = $value;
            $line['data'] = $key . " = " . $value . PHP_EOL;
            return;
        }

        throw new RuntimeException('Missing Section or Key');
    }
public function set($section, $key, $value)
    {
        foreach ($this->lines as &$line) {
            if ($line['type'] != 'entry') {
                continue;
            }
            if ($line['section'] != $section) {
                continue;
            }
            if ($line['key'] != $key) {
                continue;
            }
            $line['value'] = $value;
            $line['data'] = $key . " = " . $value . PHP_EOL;
            return;
        }

        throw new RuntimeException('Missing Section or Key');
    }
public function set ( $ section , $ key , $ value ) { foreach ( $ this -> lines as & $ line ) { if ( $ line [ 'type' ] != 'entry' ) { continue ; } if ( $ line [ 'section' ] != $ section ) { continue ; } if ( $ line [ 'key' ] != $ key ) { continue ; } $ line [ 'value' ] = $ value ; $ line [ 'data' ] = $ key . " = " . $ value . PHP_EOL ; return ; } throw new RuntimeException ( 'Missing Section or Key' ) ; }
Set key to value in specified section

@param string $section Section
@param string $key     Key
@param string $value   Value

@return void
Set key to value in specified section