Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 5778

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Return the method how the SNMP values will be returned</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.snmp-get-quick-print.html">snmp_get_quick_print</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.snmp-read-mib.html">snmp_read_mib</a></div>
 <div class="up"><a href="ref.snmp.html">SNMP Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.snmp-get-valueretrieval" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">snmp_get_valueretrieval</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.3.3, PHP 5)</p><p class="refpurpose"><span class="refname">snmp_get_valueretrieval</span> &mdash; <span class="dc-title">
   Return the method how the SNMP values will be returned
  </span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.snmp-get-valueretrieval-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">int</span>
    <span class="methodname"><strong>snmp_get_valueretrieval</strong></span>
    ( <span class="methodparam">void</span>
   )</div>

 </div>

 
 <div class="refsect1 returnvalues" id="refsect1-function.snmp-get-valueretrieval-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   OR-ed combitantion of constants ( <strong><code>SNMP_VALUE_LIBRARY</code></strong> or
   <strong><code>SNMP_VALUE_PLAIN</code></strong> ) with
   possible SNMP_VALUE_OBJECT set.
  </p>
 </div>

 
 <div class="refsect1 examples" id="refsect1-function.snmp-get-valueretrieval-examples">
  <h3 class="title">Examples</h3>
  <p class="para">
   <div class="example" id="example-4548">
    <p><strong>Example #1 Using snmp_get_valueretrieval</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />&nbsp;$ret&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">snmpget</span><span style="color: #007700">(</span><span style="color: #DD0000">'localhost'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'public'</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">'IF-MIB::ifName.1'</span><span style="color: #007700">);<br />&nbsp;if&nbsp;(</span><span style="color: #0000BB">snmp_get_valueretrieval</span><span style="color: #007700">()&nbsp;&amp;&nbsp;</span><span style="color: #0000BB">SNMP_VALUE_OBJECT</span><span style="color: #007700">)&nbsp;{<br />&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #0000BB">$ret</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">value</span><span style="color: #007700">;<br />&nbsp;}&nbsp;else&nbsp;{<br />&nbsp;&nbsp;&nbsp;echo&nbsp;</span><span style="color: #0000BB">$ret</span><span style="color: #007700">;<br />&nbsp;}<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

   </div>
  </p>
 </div>

 
 <div class="refsect1 seealso" id="refsect1-function.snmp-get-valueretrieval-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member">
      <span class="function"><a href="function.snmp-set-valueretrieval.html" class="function" rel="rdfs-seeAlso">snmp_set_valueretrieval()</a> - Specify the method how the SNMP values will be returned</span>
    </li>
    <li class="member"><a href="snmp.constants.html" class="xref">Predefined Constants</a></li>
   </ul>
  </p>
 </div>

 
</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.snmp-get-quick-print.html">snmp_get_quick_print</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.snmp-read-mib.html">snmp_read_mib</a></div>
 <div class="up"><a href="ref.snmp.html">SNMP Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>