DOMEntityReference::__construct Creates a new DOMEntityReference object &reftitle.description; public DOMEntityReference::__construct stringname Creates a new DOMEntityReference object. &reftitle.parameters; name The name of the entity reference. &reftitle.examples; Creating a new DOMEntityReference appendChild(new DOMElement('root')); $entity = $element->appendChild(new DOMEntityReference('nbsp')); echo $dom->saveXML(); /*   */ ?> ]]> &reftitle.seealso; DOMDocument::createEntityReference