public function removeAttribute($name) { foreach (array_keys($this->_attributes) as $key) { if ($this->_attributes[$key]['name'] == $name) { unset($this->_attributes[$key]); } } }