public function remove($objElement)
    {
        $varKey = $this->inCollection($objElement, true);

        if ($varKey !== false) {
            // Element found. Now remove it.
            unset($this->collection[$varKey]);
        }

        $this->rebuild(); // Rebuild collection index.

        return true;
    }
public function remove($objElement)
    {
        $varKey = $this->inCollection($objElement, true);

        if ($varKey !== false) {
            // Element found. Now remove it.
            unset($this->collection[$varKey]);
        }

        $this->rebuild(); // Rebuild collection index.

        return true;
    }
public function remove ( $ objElement ) { $ varKey = $ this -> inCollection ( $ objElement , true ) ; if ( $ varKey !== false ) { // Element found. Now remove it. unset ( $ this -> collection [ $ varKey ] ) ; } $ this -> rebuild ( ) ; // Rebuild collection index. return true ; }
Remove an element from the collection

@param object $objElement The element that will be removed
@return boolean Always returns true. If it couldn't be found, its gone. If the element is found, it will
be removed.
Remove an element from the collection