<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.domelement.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'domelement.getattributens.php',
    1 => 'DOMElement::getAttributeNS',
    2 => 'Returns value of attribute',
  ),
  'up' => 
  array (
    0 => 'class.domelement.php',
    1 => 'DOMElement',
  ),
  'prev' => 
  array (
    0 => 'domelement.getattributenodens.php',
    1 => 'DOMElement::getAttributeNodeNS',
  ),
  'next' => 
  array (
    0 => 'domelement.getelementsbytagname.php',
    1 => 'DOMElement::getElementsByTagName',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/dom/domelement/getattributens.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="domelement.getattributens" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">DOMElement::getAttributeNS</h1>
  <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">DOMElement::getAttributeNS</span> &mdash; <span class="dc-title">Returns value of attribute</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-domelement.getattributens-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>DOMElement::getAttributeNS</strong></span>(<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$namespace</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$localName</code></span>): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="para rdfs-comment">
   Gets the value of the attribute in namespace <code class="parameter">namespace</code> 
   with local name <code class="parameter">localName</code> for the current node. 
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-domelement.getattributens-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">namespace</code></dt>
     <dd>
      <p class="para">
       The namespace URI.
      </p>
     </dd>
    
    
     <dt><code class="parameter">localName</code></dt>
     <dd>
      <p class="para">
       The local name.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-domelement.getattributens-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   The value of the attribute, or an empty string if no attribute with the
   given <code class="parameter">localName</code> and <code class="parameter">namespace</code> 
   is found.
  </p>
 </div>

 <div class="refsect1 seealso" id="refsect1-domelement.getattributens-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="domelement.hasattributens.php" class="methodname" rel="rdfs-seeAlso">DOMElement::hasAttributeNS()</a> - Checks to see if attribute exists</span></li>
    <li><span class="methodname"><a href="domelement.setattributens.php" class="methodname" rel="rdfs-seeAlso">DOMElement::setAttributeNS()</a> - Adds new attribute</span></li>
    <li><span class="methodname"><a href="domelement.removeattributens.php" class="methodname" rel="rdfs-seeAlso">DOMElement::removeAttributeNS()</a> - Removes attribute</span></li>
   </ul>
  </p>
 </div>

</div><?php manual_footer($setup); ?>