DOMDocument::createEntityReference
(PHP 5, PHP 7, PHP 8)
Create new entity reference node
Description
This function creates a new instance of class DOMEntityReference. Inserted
Parameters
nameThe content of the entity reference, e.g. the entity reference minus the leading
&and the trailing;characters.
Return Values
The new DOMEntityReference or false if an error occurred.
Errors/Exceptions
May throw a DOMException with the following error codes:
DOM_INVALID_CHARACTER_ERRRaised if
namecontains an invalid character.
See Also
DOMNode::appendChildDOMDocument::createAttributeDOMDocument::createAttributeNSDOMDocument::createCDATASectionDOMDocument::createCommentDOMDocument::createDocumentFragmentDOMDocument::createElementDOMDocument::createElementNSDOMDocument::createProcessingInstructionDOMDocument::createTextNode