public function renameValue($name, $newName, $section = 0)
    {
        if (!isset($this->content[$section])) {
            return false;
        }
        foreach ($this->content[$section] as $k => $item) {
            if ($item[0] != self::TK_VALUE && $item[0] != self::TK_ARR_VALUE) {
                continue;
            }
            if ($item[1] != $name) {
                continue;
            }
            $this->content[$section][$k][1] = $newName;
            $this->modified = true;
            if ($item[0] == self::TK_VALUE) {
                break;
            }
        }

        return true;
    }
public function renameValue($name, $newName, $section = 0)
    {
        if (!isset($this->content[$section])) {
            return false;
        }
        foreach ($this->content[$section] as $k => $item) {
            if ($item[0] != self::TK_VALUE && $item[0] != self::TK_ARR_VALUE) {
                continue;
            }
            if ($item[1] != $name) {
                continue;
            }
            $this->content[$section][$k][1] = $newName;
            $this->modified = true;
            if ($item[0] == self::TK_VALUE) {
                break;
            }
        }

        return true;
    }
public function renameValue ( $ name , $ newName , $ section = 0 ) { if ( ! isset ( $ this -> content [ $ section ] ) ) { return false ; } foreach ( $ this -> content [ $ section ] as $ k => $ item ) { if ( $ item [ 0 ] != self :: TK_VALUE && $ item [ 0 ] != self :: TK_ARR_VALUE ) { continue ; } if ( $ item [ 1 ] != $ name ) { continue ; } $ this -> content [ $ section ] [ $ k ] [ 1 ] = $ newName ; $ this -> modified = true ; if ( $ item [ 0 ] == self :: TK_VALUE ) { break ; } } return true ; }
rename a value.
rename a value .