DOMNode::removeChild

This functions removes a child from a list of children

public function removeChild(
  DOMNode $node,
): DOMNode;

Parameters

  • DOMNode $node - The removed child.

Return Values

  • mixed - - If the child could be removed the functions returns the old child.