array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'domdocument.createprocessinginstruction.php', 1 => 'DOMDocument::createProcessingInstruction', ), 'up' => array ( 0 => 'class.domdocument.php', 1 => 'DOMDocument', ), 'prev' => array ( 0 => 'domdocument.createentityreference.php', 1 => 'DOMDocument::createEntityReference', ), 'next' => array ( 0 => 'domdocument.createtextnode.php', 1 => 'DOMDocument::createTextNode', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/dom/domdocument/createprocessinginstruction.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5, PHP 7, PHP 8)
DOMDocument::createProcessingInstruction — Creates new PI node
$target
, string $data
= ""): DOMProcessingInstruction|falseThis function creates a new instance of class DOMProcessingInstruction. Dieser Knoten wird im Dokument erst dann angezeigt, wenn er mit (z. B.) DOMNode::appendChild() eingefügt wird.
target
The target of the processing instruction.
data
The content of the processing instruction.
The new DOMProcessingInstruction or false
if an error occurred.