DOMDocument::createEntityReference

(PHP 5, PHP 7, PHP 8)

DOMDocument::createEntityReferenceCreate new entity reference node

Descrizione

public DOMDocument::createEntityReference(string $name): DOMEntityReference|false

This function creates a new instance of class DOMEntityReference. Questo nodo non verrà mostrato nel documento a meno che venga inserito con, es. DOMNode::appendChild().

Elenco dei parametri

name

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

Valori restituiti

The new DOMEntityReference or false if an error occurred.

Errori/Eccezioni

DOM_INVALID_CHARACTER_ERR

Raised if name contains an invalid character.

Vedere anche: