function.domdocument-create-attribute.html
来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 53 行
HTML
53 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Create new attribute</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="function.domdocument-add-root.html">DomDocument->add_root</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.domdocument-create-cdata-section.html">DomDocument->create_cdata_section</a></div> <div class="up"><a href="ref.domxml.html">DOM XML Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.domdocument-create-attribute" class="refentry"> <div class="refnamediv"> <h1 class="refname">DomDocument->create_attribute</h1> <p class="verinfo">(No version information available, might be only in CVS)</p><p class="refpurpose"><span class="refname">DomDocument->create_attribute</span> — <span class="dc-title">Create new attribute</span></p> </div> <div class="refsect1 unknown"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type"><span class="type domattribute">domattribute</span></span> <span class="methodname"><b><b>DomDocument->create_attribute</b></b></span> ( <span class="methodparam"><span class="type">string</span> <tt class="parameter">$name</tt></span> , <span class="methodparam"><span class="type">string</span> <tt class="parameter">$value</tt></span> )</div> <p class="para rdfs-comment"> This function returns a new instance of class <b class="classname">DomAttribute</b>. The name of the attribute is the value of the first parameter. The value of the attribute is the value of the second parameter. This node will not show up in the document unless itis inserted with (e.g.) <a href="function.domnode-append-child.html" class="function">domnode_append_child()</a>. </p> <p class="para"> The return value is <b><tt>FALSE</tt></b> if an error occurred. </p> <p class="para"> See also <a href="function.domnode-append-child.html" class="function">domnode_append_child()</a>, <a href="function.domdocument-create-element.html" class="function">domdocument_create_element()</a>, <b>domdocument_create_text()</b>, <a href="function.domdocument-create-cdata-section.html" class="function">domdocument_create_cdata_section()</a>, <a href="function.domdocument-create-processing-instruction.html" class="function">domdocument_create_processing_instruction()</a>, <a href="function.domdocument-create-entity-reference.html" class="function">domdocument_create_entity_reference()</a>, and <a href="function.domnode-insert-before.html" class="function">domnode_insert_before()</a>. </p> </div> </div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.domdocument-add-root.html">DomDocument->add_root</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.domdocument-create-cdata-section.html">DomDocument->create_cdata_section</a></div> <div class="up"><a href="ref.domxml.html">DOM XML Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?