--TEST-- DOMNode::remove() --EXTENSIONS-- dom --FILE-- loadXML('firstsecond'); $element = $dom->documentElement; print_node($element->firstChild); $returnValue = $element->firstChild->remove(); print_node($element->firstChild); var_dump($returnValue); ?> --EXPECT-- Node Name: one Node Type: 1 Num Children: 1 Node Content: first Node Name: two Node Type: 1 Num Children: 1 Node Content: second NULL