<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.xmlreader.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'xmlreader.getattributens.php',
    1 => 'XMLReader::getAttributeNs',
    2 => '名前および URI をもとに、属性の値を取得する',
  ),
  'up' => 
  array (
    0 => 'class.xmlreader.php',
    1 => 'XMLReader',
  ),
  'prev' => 
  array (
    0 => 'xmlreader.getattributeno.php',
    1 => 'XMLReader::getAttributeNo',
  ),
  'next' => 
  array (
    0 => 'xmlreader.getparserproperty.php',
    1 => 'XMLReader::getParserProperty',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/xmlreader/xmlreader/getattributens.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="xmlreader.getattributens" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">XMLReader::getAttributeNs</h1>
  <p class="verinfo">(PHP 5 &gt;= 5.1.0, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">XMLReader::getAttributeNs</span> &mdash; <span class="dc-title">名前および URI をもとに、属性の値を取得する</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-xmlreader.getattributens-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>XMLReader::getAttributeNs</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$name</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$namespace</code></span>): <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></div>

  <p class="para rdfs-comment">
   名前および名前空間 URI をもとにして属性の値を返します。
   属性が存在しなかったり、現在位置が要素ノードでなかったりした場合には
   空の文字列を返します。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-xmlreader.getattributens-parameters">
  <h3 class="title">パラメータ</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">name</code></dt>
     <dd>
      <p class="para">
       ローカルの名前。
      </p>
     </dd>
    
    
     <dt><code class="parameter">namespace</code></dt>
     <dd>
      <p class="para">
       名前空間の URI。
      </p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-xmlreader.getattributens-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="para">
   属性の値を返します。指定した <code class="parameter">name</code>
   および <code class="parameter">namespace</code> に属性が見つからなかったり、
   現在位置が要素ではなかったりした場合には
   <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> を返します。
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-xmlreader.getattributens-changelog">
  <h3 class="title">変更履歴</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>バージョン</th>
       <th>説明</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>8.0.0</td>
       <td>
        この関数は <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返さなくなりました。
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-xmlreader.getattributens-seealso">
  <h3 class="title">参考</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="xmlreader.getattribute.php" class="methodname" rel="rdfs-seeAlso">XMLReader::getAttribute()</a> - 名前をもとに、属性の値を取得する</span></li>
    <li><span class="methodname"><a href="xmlreader.getattributeno.php" class="methodname" rel="rdfs-seeAlso">XMLReader::getAttributeNo()</a> - インデックスをもとに、属性の値を取得する</span></li>
   </ul>
  </p>
 </div>

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