DOMText::__construct
Creates a new DOMText object
&reftitle.description;
public DOMText::__construct
stringvalue
Creates a new DOMText object.
&reftitle.parameters;
value
The value of the text node. If not supplied an empty text node is created.
&reftitle.examples;
Creating a new DOMText
appendChild(new DOMElement('root'));
$text = $element->appendChild(new DOMText('root value'));
echo $dom->saveXML(); /* root value */
?>
]]>
&reftitle.seealso;
DOMDocument::createTextNode