PHP 8.5.0 Beta 1 available for testing

Voting

: max(two, three)?
(Example: nine)

The Note You're Voting On

Wala
17 years ago
I used the following to delete an entire node using the child element:

<?php
$childElement
->parentNode->parentNode-> removeChild($childElement->parentNode);
?>

I could not have thought of it without the help of everyone who contributed to this thread.

Thanks!

(I had to introduce the extra space between parentNode->removeChild to get rid of the wordwrap() warning while posting this note)

<< Back to user notes page

To Top