📄 domdocument.importnode.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Import node into current document</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="domdocument.getelementsbytagnamens.html">DOMDocument::getElementsByTagNameNS</a></div> <div class="next" style="text-align: right; float: right;"><a href="domdocument.load.html">DOMDocument::load</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.importnode" class="refentry"> <div class="refnamediv"> <h1 class="refname">DOMDocument::importNode</h1> <p class="verinfo">(No version information available, might be only in CVS)</p><p class="refpurpose"><span class="refname">DOMDocument::importNode</span> — <span class="dc-title">Import node into current document</span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type"><a href="class.domnode.html" class="type DOMNode">DOMNode</a></span> <span class="methodname"><b><b>DOMDocument::importNode</b></b></span> ( <span class="methodparam"><span class="type"><a href="class.domnode.html" class="type DOMNode">DOMNode</a></span> <tt class="parameter">$importedNode</tt></span> [, <span class="methodparam"><span class="type">bool</span> <tt class="parameter">$deep</tt></span> ] )</div> <p class="para rdfs-comment"> This function returns a copy of the node to import and associates it with the current document. </p> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">importedNode</tt></i></span> <dd> <p class="para"> The node to import. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">deep</tt></i></span> <dd> <p class="para"> If set to <b><tt>TRUE</tt></b>, this method will recursively import the subtree under the <i><tt class="parameter">importedNode</tt></i>. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> The copied node or <b><tt>FALSE</tt></b>, if it cannot be copied. </p> </div> <div class="refsect1 errors"> <h3 class="title">Errors/Exceptions</h3> <p class="para"> <a href="class.domexception.html" class="classname">DOMException</a> is thrown if node cannot be imported. </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="domdocument.getelementsbytagnamens.html">DOMDocument::getElementsByTagNameNS</a></div> <div class="next" style="text-align: right; float: right;"><a href="domdocument.load.html">DOMDocument::load</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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -