public function QueryPath::removeChildren in QueryPath 7.3
Same name and namespace in other branches
- 6 QueryPath/QueryPath.php \QueryPath::removeChildren()
- 7.2 QueryPath/QueryPath.php \QueryPath::removeChildren()
4 calls to QueryPath::removeChildren()
- QueryPath::emptyElement in QueryPath/
QueryPath.php - QueryPath::html in QueryPath/
QueryPath.php - QueryPath::text in QueryPath/
QueryPath.php - QueryPath::xml in QueryPath/
QueryPath.php
File
- QueryPath/
QueryPath.php, line 1015
Class
Code
public function removeChildren() {
foreach ($this->matches as $m) {
while ($kid = $m->firstChild) {
$m
->removeChild($kid);
}
}
return $this;
}