DOMDocument
PHP Manual

DOMDocument::createEntityReference

(PHP 5)

DOMDocument::createEntityReferenceCreate new entity reference node

Описание

DOMEntityReference DOMDocument::createEntityReference ( string $name )

This function creates a new instance of class DOMEntityReference. Този възел няма да се показва в документа докато не бъде вмъкнат с DOMNode->appendChild().

Параметри

name

The content of the entity reference, e.g. the entity reference minus the leading & and the trailing ; characters.

Връщани стойности

The new DOMEntityReference or FALSE if an error occured.

Грешки/Изключения

DOM_INVALID_CHARACTER_ERR

Raised if name contains an invalid character.

Вж. също


DOMDocument
PHP Manual