array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'es', ), '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' => 'es', '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 — Crea un nuevo nodo PI
$target
, string $data
= ""): DOMProcessingInstruction|falseEsta función crea una nueva instancia de la clase DOMProcessingInstruction. Este nodo no se mostrará en el documento a no ser que sea insertado con (p.e.j.) DOMNode::appendChild().
target
El objetivo de la instrucción de procesamiento.
data
El contenido de la instrucción de procesamiento.
El nuevo DOMProcessingInstruction o false
si ha ocurrido un error.