Pyh.conf’25: a new PHP conference for the Russian-speaking community

Voting

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

The Note You're Voting On

jorda at edpsciences dot org
10 years ago
C14N() returns an empty string if the node is not included in the document tree:
<?php
$d
= new DOMDocument('1.0');
$d->loadXML('<foo></foo>');
$n = $d->createElement('bar');
var_dump($n->C14N());
$d->documentElement->appendChild($n);
var_dump($n->C14N());
?>
output:
string(0) ""
string(11) "<bar></bar>"

<< Back to user notes page

To Top