DOMDocument
PHP Manual

DOMDocument::createProcessingInstruction

(PHP 5)

DOMDocument::createProcessingInstructionCreates new PI node

Описание

DOMProcessingInstruction DOMDocument::createProcessingInstruction ( string $target [, string $data ] )

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

Параметри

target

The target of the processing instruction.

data

The content of the processing instruction.

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

The new DOMProcessingInstruction or FALSE if an error occured.

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

DOM_INVALID_CHARACTER_ERR

Raised if target contains an invalid character.

Вж. също


DOMDocument
PHP Manual