PHP 8.5.0 Beta 1 available for testing

Voting

: zero plus eight?
(Example: nine)

The Note You're Voting On

pedro at leb dot usp dot br
20 years ago
You may also use the hasChild function:
<?php

while($node->hasChildNodes()) {
$node->removeChild($node->childNodes->item(0));
}

?>

When you remove a childNode, the next node becomes the first one!

<< Back to user notes page

To Top