<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.radius.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.radius-get-tagged-attr-data.php',
    1 => 'radius_get_tagged_attr_data',
    2 => 'Extracts the data from a tagged attribute',
  ),
  'up' => 
  array (
    0 => 'ref.radius.php',
    1 => 'Radius 函数',
  ),
  'prev' => 
  array (
    0 => 'function.radius-get-attr.php',
    1 => 'radius_get_attr',
  ),
  'next' => 
  array (
    0 => 'function.radius-get-tagged-attr-tag.php',
    1 => 'radius_get_tagged_attr_tag',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/radius/functions/radius-get-tagged-attr-data.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.radius-get-tagged-attr-data" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">radius_get_tagged_attr_data</h1>
  <p class="verinfo">(PECL radius &gt;= 1.3.0)</p><p class="refpurpose"><span class="refname">radius_get_tagged_attr_data</span> &mdash; <span class="dc-title">Extracts the data from a tagged attribute</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.radius-get-tagged-attr-data-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>radius_get_tagged_attr_data</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$data</code></span>): <span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="simpara">
   If a tagged attribute has been returned from
   <span class="function"><a href="function.radius-get-attr.php" class="function">radius_get_attr()</a></span>,
   <span class="function"><strong>radius_get_tagged_attr_data()</strong></span> will return the data from
   the attribute.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.radius-get-tagged-attr-data-parameters">
  <h3 class="title">参数</h3>
  <dl>
   
    <dt><code class="parameter">data</code></dt>
    <dd>
     <span class="simpara">
      The tagged attribute to be decoded.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.radius-get-tagged-attr-data-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="simpara">
   Returns the data from the tagged attribute  或者在失败时返回 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.radius-get-tagged-attr-data-examples">
  <h3 class="title">示例</h3>
  <div class="example" id="example-1">
   <p><strong>示例 #1 <span class="function"><strong>radius_get_tagged_attr_data()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">while (</span><span style="color: #0000BB">$resa </span><span style="color: #007700">= </span><span style="color: #0000BB">radius_get_attr</span><span style="color: #007700">(</span><span style="color: #0000BB">$res</span><span style="color: #007700">)) {<br />    if (!</span><span style="color: #0000BB">is_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$resa</span><span style="color: #007700">)) {<br />        </span><span style="color: #0000BB">printf </span><span style="color: #007700">(</span><span style="color: #DD0000">"Error getting attribute: %s\n"</span><span style="color: #007700">,  </span><span style="color: #0000BB">radius_strerror</span><span style="color: #007700">(</span><span style="color: #0000BB">$res</span><span style="color: #007700">));<br />        exit;<br />    }<br /><br />    </span><span style="color: #0000BB">$attr </span><span style="color: #007700">= </span><span style="color: #0000BB">$resa</span><span style="color: #007700">[</span><span style="color: #DD0000">'attr'</span><span style="color: #007700">];<br />    </span><span style="color: #0000BB">$data </span><span style="color: #007700">= </span><span style="color: #0000BB">$resa</span><span style="color: #007700">[</span><span style="color: #DD0000">'data'</span><span style="color: #007700">];<br /><br />    </span><span style="color: #0000BB">$tag </span><span style="color: #007700">= </span><span style="color: #0000BB">radius_get_tagged_attr_tag</span><span style="color: #007700">(</span><span style="color: #0000BB">$data</span><span style="color: #007700">);<br />    </span><span style="color: #0000BB">$value </span><span style="color: #007700">= </span><span style="color: #0000BB">radius_get_tagged_attr_data</span><span style="color: #007700">(</span><span style="color: #0000BB">$data</span><span style="color: #007700">);<br /><br />    </span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"Got tagged attribute with tag %d and value %s\n"</span><span style="color: #007700">, </span><span style="color: #0000BB">$tag</span><span style="color: #007700">, </span><span style="color: #0000BB">$value</span><span style="color: #007700">);<br />}<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.radius-get-tagged-attr-data-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.radius-get-attr.php" class="function" rel="rdfs-seeAlso">radius_get_attr()</a> - Extracts an attribute</span></li>
   <li><span class="function"><a href="function.radius-get-tagged-attr-tag.php" class="function" rel="rdfs-seeAlso">radius_get_tagged_attr_tag()</a> - Extracts the tag from a tagged attribute</span></li>
  </ul>
 </div>

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