DOMDocument->createEntityReference()

(no version information, might be only in CVS)

DOMDocument->createEntityReference()  -- Create new entity reference node

Описание

class DOMDocument {

DOMEntityReference 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.

Вж. също