PHP 8.5.0 Alpha 4 available for testing

Voting

: max(seven, four)?
(Example: nine)

The Note You're Voting On

dpetroff ( at ) gmail.com
14 years ago
Hi!

Combining all th comments, the easiest way to get inner HTML of the node is to use this function:

<?php
function get_inner_html( $node ) {
$innerHTML= '';
$children = $node->childNodes;
foreach (
$children as $child) {
$innerHTML .= $child->ownerDocument->saveXML( $child );
}

return
$innerHTML;
}
?>

<< Back to user notes page

To Top