DOMDocument
PHP Manual

DOMDocument::createEntityReference

(PHP 5)

DOMDocument::createEntityReferenceCreate new entity reference node

Descrizione

public DOMEntityReference DOMDocument::createEntityReference ( string $name )

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:


DOMDocument
PHP Manual