original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: 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.
docstring_tokens: Remove an element from the collection