PATH:
home
/
lab2454c
/
keebchat.com
/
core
/
libs
/
htmlParser
/
manual
/
docs
/
api
/
simple_html_dom_node
# removeChild ```php removeChild ( object $node ) ``` | Parameter | Description | --------- | ----------- | `node` | Node to remove from current element, must be a child of the current element. Removes the node recursively from the DOM. Does nothing if the provided node is not a child of the current node. **Example** ```php $html = str_get_html(<<<EOD <html> <body> <table> <tr><th>Title</th></tr> <tr><td>Row 1</td></tr> </table> </body> </html> EOD ); $body = $html->find('body', 0); $body->removeChild($body->find('table', 0)); echo $html; /** * Returns * * <html> <body> </body> </html> */ ``` **Remarks** * Whitespace immediately **before** the removed node will remain in the DOM.
[-] childNodes.md
[edit]
[-] innertext.md
[edit]
[-] xmltext.md
[edit]
[-] firstChild.md
[edit]
[-] setAttribute.md
[edit]
[-] removeClass.md
[edit]
[-] removeAttribute.md
[edit]
[+]
..
[-] __unset.md
[edit]
[-] text.md
[edit]
[-] convert_text.md
[edit]
[-] lastChild.md
[edit]
[-] clear.md
[edit]
[-] is_utf8.md
[edit]
[-] prevSibling.md
[edit]
[-] removeChild.md
[edit]
[-] getElementById.md
[edit]
[-] get_display_size.md
[edit]
[-] parentNode.md
[edit]
[-] outertext.md
[edit]
[-] getElementsById.md
[edit]
[-] __get.md
[edit]
[-] dump.md
[edit]
[-] addClass.md
[edit]
[-] getAllAttributes.md
[edit]
[-] __isset.md
[edit]
[-] parse_selector.md
[edit]
[-] getElementByTagName.md
[edit]
[-] match.md
[edit]
[-] seek.md
[edit]
[-] __destruct.md
[edit]
[-] hasAttribute.md
[edit]
[-] prev_sibling.md
[edit]
[-] find_ancestor_tag.md
[edit]
[-] __construct.md
[edit]
[-] next_sibling.md
[edit]
[-] parent.md
[edit]
[-] nextSibling.md
[edit]
[-] getElementsByTagName.md
[edit]
[-] hasChildNodes.md
[edit]
[-] simple_html_dom_node.md
[edit]
[-] getAttribute.md
[edit]
[-] dump_node.md
[edit]
[-] makeup.md
[edit]
[-] last_child.md
[edit]
[-] __set.md
[edit]
[-] appendChild.md
[edit]
[-] has_child.md
[edit]
[-] nodeName.md
[edit]
[-] first_child.md
[edit]
[-] children.md
[edit]
[-] find.md
[edit]
[-] save.md
[edit]
[-] __toString.md
[edit]
[-] remove.md
[edit]
[-] hasClass.md
[edit]