Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 1437

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Creates new PI node</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="domdocument.createentityreference.html">DOMDocument::createEntityReference</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="domdocument.createtextnode.html">DOMDocument::createTextNode</a></div>
 <div class="up"><a href="class.domdocument.html">DOMDocument</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="domdocument.createprocessinginstruction" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">DOMDocument::createProcessingInstruction</h1>
  <p class="verinfo">(PHP 5)</p><p class="refpurpose"><span class="refname">DOMDocument::createProcessingInstruction</span> &mdash; <span class="dc-title">Creates new PI node</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-domdocument.createprocessinginstruction-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="type"><a href="class.domprocessinginstruction.html" class="type DOMProcessingInstruction">DOMProcessingInstruction</a></span> <span class="methodname"><strong>DOMDocument::createProcessingInstruction</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$target</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$data</code></span>
  ] )</div>

  <p class="para rdfs-comment">
   This function creates a new instance of class
   <a href="class.domprocessinginstruction.html" class="classname">DOMProcessingInstruction</a>. This node will not show up in the document unless
it is inserted with (e.g.)  <span class="function"><a href="domnode.appendchild.html" class="function">DOMNode::appendChild()</a></span>.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-domdocument.createprocessinginstruction-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

     <span class="term"><em><code class="parameter">target</code></em></span>
     <dd>

      <p class="para">
       The target of the processing instruction.
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">data</code></em></span>
     <dd>

      <p class="para">
       The content of the processing instruction.
      </p>
     </dd>

    </dt>

   </dl>

  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-domdocument.createprocessinginstruction-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   The new <a href="class.domprocessinginstruction.html" class="classname">DOMProcessingInstruction</a> or <strong><code>FALSE</code></strong> if an error occurred.
  </p>
 </div>

 <div class="refsect1 errors" id="refsect1-domdocument.createprocessinginstruction-errors">
  <h3 class="title">Errors/Exceptions</h3>
  <p class="para">
   <dl>

    <dt>

     <span class="term"><strong><code>DOM_INVALID_CHARACTER_ERR</code></strong></span>
     <dd>

      <p class="para">
       Raised if <em><code class="parameter">target</code></em> contains an invalid character.
      </p>
     </dd>

    </dt>

   </dl>

  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-domdocument.createprocessinginstruction-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"> <span class="methodname"><a href="domnode.appendchild.html" class="methodname" rel="rdfs-seeAlso">DOMNode::appendChild()</a> - Adds new child at the end of the children</span></li>
    <li class="member"> <span class="methodname"><a href="domdocument.createattribute.html" class="methodname" rel="rdfs-seeAlso">DOMDocument::createAttribute()</a> - Create new attribute</span></li>
    <li class="member"> <span class="methodname"><a href="domdocument.createattributens.html" class="methodname" rel="rdfs-seeAlso">DOMDocument::createAttributeNS()</a> - Create new attribute node with an associated namespace</span></li>
    <li class="member"> <span class="methodname"><a href="domdocument.createcdatasection.html" class="methodname" rel="rdfs-seeAlso">DOMDocument::createCDATASection()</a> - Create new cdata node</span></li>
    <li class="member"> <span class="methodname"><a href="domdocument.createcomment.html" class="methodname" rel="rdfs-seeAlso">DOMDocument::createComment()</a> - Create new comment node</span></li>
    <li class="member"> <span class="methodname"><a href="domdocument.createdocumentfragment.html" class="methodname" rel="rdfs-seeAlso">DOMDocument::createDocumentFragment()</a> - Create new document fragment</span></li>
    <li class="member"> <span class="methodname"><a href="domdocument.createelement.html" class="methodname" rel="rdfs-seeAlso">DOMDocument::createElement()</a> - Create new element node</span></li>
    <li class="member"> <span class="methodname"><a href="domdocument.createelementns.html" class="methodname" rel="rdfs-seeAlso">DOMDocument::createElementNS()</a> - Create new element node with an associated namespace</span></li>
    <li class="member"> <span class="methodname"><a href="domdocument.createentityreference.html" class="methodname" rel="rdfs-seeAlso">DOMDocument::createEntityReference()</a> - Create new entity reference node</span></li>
    <li class="member"> <span class="methodname"><a href="domdocument.createtextnode.html" class="methodname" rel="rdfs-seeAlso">DOMDocument::createTextNode()</a> - Create new text node</span></li>
   </ul>
  </p>
 </div>

</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="domdocument.createentityreference.html">DOMDocument::createEntityReference</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="domdocument.createtextnode.html">DOMDocument::createTextNode</a></div>
 <div class="up"><a href="class.domdocument.html">DOMDocument</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>