Removes an element with a specific key/index from the collection.
mixed $key:
mixed The removed element or NULL, if no element exists for the given key.
Overrides Collection::remove
public function remove($key) {
if (isset($this->_elements[$key])) {
$removed = $this->_elements[$key];
unset($this->_elements[$key]);
return $removed;
}
return null;
}