src/XML/DOM/Node.php
public function removeChild( $nodeName )
	{
		$found		= false;
		$children	= array();
		foreach( $this->children as $child )
		{
			if( !$found && $child->getNodeName() == $nodeName )
			{
				$found	= TRUE;
				continue;
			}
			$children[] = $child;
		}
		if( $children == $this->children )
			return FALSE;
		$this->children = $children;
		return TRUE;
	}
public function removeChild( $nodeName )
	{
		$found		= false;
		$children	= array();
		foreach( $this->children as $child )
		{
			if( !$found && $child->getNodeName() == $nodeName )
			{
				$found	= TRUE;
				continue;
			}
			$children[] = $child;
		}
		if( $children == $this->children )
			return FALSE;
		$this->children = $children;
		return TRUE;
	}
public function removeChild ( $ nodeName ) { $ found = false ; $ children = array ( ) ; foreach ( $ this -> children as $ child ) { if ( ! $ found && $ child -> getNodeName ( ) == $ nodeName ) { $ found = TRUE ; continue ; } $ children [ ] = $ child ; } if ( $ children == $ this -> children ) return FALSE ; $ this -> children = $ children ; return TRUE ; }
Remove first found Child Nodes with given name.
@access		public
@param		string		$nodeName		Name of Child Node to be removed
@return		bool
Remove first found Child Nodes with given name .