PHP 8.5.0 Beta 1 available for testing

Voting

: nine plus zero?
(Example: nine)

The Note You're Voting On

nevyn at NOSPAM dot email dot PLEASE dot it
18 years ago
A little function to get the full xml contents of a Xml node.

function innerXml($node)
{
$out = $node->ownerDocument->saveXML($node);
$re = "{^<(\\w*)(?:\\s*\\w+=(?:\"[^\"]*\"|\'[^\']*\'))*\\s*>(.*)</\\1>$}";
preg_match($re, $out, $mat);
return $mat[2];
}

<< Back to user notes page

To Top