public function removeChild( AbstractElement $element ) {
		$index = $this->indexOf($element);
		if( $index !== null ) {
			unset($this->childElements[$index]);

			//Remove any gaps
			$this->childElements = array_values($this->childElements);

			return true;
		}

		return false;
	}
public function removeChild( AbstractElement $element ) {
		$index = $this->indexOf($element);
		if( $index !== null ) {
			unset($this->childElements[$index]);

			//Remove any gaps
			$this->childElements = array_values($this->childElements);

			return true;
		}

		return false;
	}
public function removeChild ( AbstractElement $ element ) { $ index = $ this -> indexOf ( $ element ) ; if ( $ index !== null ) { unset ( $ this -> childElements [ $ index ] ) ; //Remove any gaps $ this -> childElements = array_values ( $ this -> childElements ) ; return true ; } return false ; }
Remove a child element

@param AbstractElement $element
@return bool False if the given element was not found.
Remove a child element