/** * Removes one or more parameters with the specified name * * @param string $name * @return void */ public function offsetUnset($name) { if (is_int($name)) { return parent::offsetUnset($name, $value); } $name = strtoupper($name); $result = array(); foreach ($this->parameters as $key => $parameter) { if ($parameter->name == $name) { unset($this->parameters[$key]); } } }
/** * Removes one or more parameters with the specified name * * @param string $name * @return void */ public function offsetUnset($name) { if (is_int($name)) { parent::offsetUnset($name); } $name = strtoupper($name); foreach ($this->parameters as $key => $parameter) { if ($parameter->name == $name) { $parameter->parent = null; unset($this->parameters[$key]); } } }