phpQueryObject::_empty
Proper name without underscore (just ->empty()) also works.
Removes all child nodes from the set of matched elements. Example: pq("p")._empty() HTML: <p>Hello, <span>Person</span> <a href="#">and person</a></p> Result: [ <p></p> ]
Signature
public function _empty()
Returns
- phpQueryObject|QueryTemplatesSource|QueryTemplatesParse|QueryTemplatesSourceQuery