public function update($position, $key, $value)
    {
        $this->remove($position);

        return $this->insert($key, $value);
    }
public function update($position, $key, $value)
    {
        $this->remove($position);

        return $this->insert($key, $value);
    }
public function update ( $ position , $ key , $ value ) { $ this -> remove ( $ position ) ; return $ this -> insert ( $ key , $ value ) ; }
Updates an existing key by removing it from the existing file and
appending the new value to the end of the file.

@param  string  $key   The Key to be stored
@param  mixed   $value The Value to be stored

@return integer
Updates an existing key by removing it from the existing file and appending the new value to the end of the file .