src/Neuron/Collections/Collection.php
public function remove ($entry) {
		foreach ($this->data as $k => $v) {
			if ($v === $entry) {
				$associative = $this->isAssociative ();

				unset ($this->data[$k]);
				if ($associative) {
					$this->data = array_values ($this->data);
				}

				return true;

			}
		}
		return false;
	}
public function remove ($entry) {
		foreach ($this->data as $k => $v) {
			if ($v === $entry) {
				$associative = $this->isAssociative ();

				unset ($this->data[$k]);
				if ($associative) {
					$this->data = array_values ($this->data);
				}

				return true;

			}
		}
		return false;
	}
public function remove ( $ entry ) { foreach ( $ this -> data as $ k => $ v ) { if ( $ v === $ entry ) { $ associative = $ this -> isAssociative ( ) ; unset ( $ this -> data [ $ k ] ) ; if ( $ associative ) { $ this -> data = array_values ( $ this -> data ) ; } return true ; } } return false ; }
Remove an element from the collection.
@param $entry
@return bool
Remove an element from the collection .