public function remove($value)
	{
		$keys = array_keys($this->items, $this->normalizeValue($value));
		foreach ($keys as $k)
		{
			unset($this->items[$k]);
		}

		$this->items = array_values($this->items);

		return count($keys);
	}
public function remove($value)
	{
		$keys = array_keys($this->items, $this->normalizeValue($value));
		foreach ($keys as $k)
		{
			unset($this->items[$k]);
		}

		$this->items = array_values($this->items);

		return count($keys);
	}
public function remove ( $ value ) { $ keys = array_keys ( $ this -> items , $ this -> normalizeValue ( $ value ) ) ; foreach ( $ keys as $ k ) { unset ( $ this -> items [ $ k ] ) ; } $ this -> items = array_values ( $ this -> items ) ; return count ( $ keys ) ; }
Remove all items matching given value

@param  mixed   $value Original value
@return integer        Number of items removed
Remove all items matching given value