<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.snmp.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.snmp-set-quick-print.php',
    1 => 'snmp_set_quick_print',
    2 => 'Set the value of enable within the NET-SNMP library',
  ),
  'up' => 
  array (
    0 => 'ref.snmp.php',
    1 => 'SNMP Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.snmp-set-oid-output-format.php',
    1 => 'snmp_set_oid_output_format',
  ),
  'next' => 
  array (
    0 => 'function.snmp-set-valueretrieval.php',
    1 => 'snmp_set_valueretrieval',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/snmp/functions/snmp-set-quick-print.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.snmp-set-quick-print" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">snmp_set_quick_print</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">snmp_set_quick_print</span> &mdash; <span class="dc-title">Set the value of <code class="parameter">enable</code> within the NET-<abbr title="Simple Network Management Protocol">SNMP</abbr> library
  </span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.snmp-set-quick-print-description">
  <h3 class="title">Descrizione</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>snmp_set_quick_print</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> <code class="parameter">$enable</code></span>): <span class="type"><a href="language.types.singleton.php" class="type true">true</a></span></div>


  <p class="simpara">
   Sets the value of <code class="parameter">enable</code> within the NET-<abbr title="Simple Network Management Protocol">SNMP</abbr> library.  When this
   is set (1), the <abbr title="Simple Network Management Protocol">SNMP</abbr> library will return &#039;quick printed&#039; values.  This
   means that just the value will be printed.  When <code class="parameter">enable</code> is not
   enabled (default) the NET-<abbr title="Simple Network Management Protocol">SNMP</abbr> library prints extra information
   including the type of the value (i.e. IpAddress or OID).  Additionally,
   if quick_print is not enabled, the library prints additional hex values
   for all strings of three characters or less.
  </p>
  <p class="simpara">
   By default the NET-<abbr title="Simple Network Management Protocol">SNMP</abbr> library returns verbose values, quick_print is
   used to return only the value.
  </p>
  <p class="simpara">
   Currently strings are still returned with extra quotes, this will be
   corrected in a later release.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.snmp-set-quick-print-parameters">
  <h3 class="title">Elenco dei parametri</h3>
  <dl>
   
    <dt><code class="parameter">enable</code></dt>
    <dd>
     <span class="simpara">
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.snmp-set-quick-print-returnvalues">
  <h3 class="title">Valori restituiti</h3>
  <p class="simpara">
   Always returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.snmp-set-quick-print-changelog">
  <h3 class="title">Log delle modifiche</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Versione</th>
      <th>Descrizione</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
 <td>8.2.0</td>
 <td>
  The return type is <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> now; previously, it was <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>.
 </td>
</tr>

    </tbody>
   
  </table>

 </div>


 <div class="refsect1 examples" id="refsect1-function.snmp-set-quick-print-examples">
  <h3 class="title">Esempi</h3>
  <p class="simpara">
   Setting quick_print is often used when using the information returned
   rather than displaying it.
  </p>
  <div class="example" id="example-1">
   <p><strong>Example #1 Using <span class="function"><strong>snmp_set_quick_print()</strong></span></strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />snmp_set_quick_print</span><span style="color: #007700">(</span><span style="color: #0000BB">0</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$a </span><span style="color: #007700">= </span><span style="color: #0000BB">snmpget</span><span style="color: #007700">(</span><span style="color: #DD0000">"127.0.0.1"</span><span style="color: #007700">, </span><span style="color: #DD0000">"public"</span><span style="color: #007700">, </span><span style="color: #DD0000">".1.3.6.1.2.1.2.2.1.9.1"</span><span style="color: #007700">);<br />echo </span><span style="color: #DD0000">"</span><span style="color: #0000BB">$a</span><span style="color: #DD0000">\n"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">snmp_set_quick_print</span><span style="color: #007700">(</span><span style="color: #0000BB">1</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">$a </span><span style="color: #007700">= </span><span style="color: #0000BB">snmpget</span><span style="color: #007700">(</span><span style="color: #DD0000">"127.0.0.1"</span><span style="color: #007700">, </span><span style="color: #DD0000">"public"</span><span style="color: #007700">, </span><span style="color: #DD0000">".1.3.6.1.2.1.2.2.1.9.1"</span><span style="color: #007700">);<br />echo </span><span style="color: #DD0000">"</span><span style="color: #0000BB">$a</span><span style="color: #DD0000">\n"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

   <div class="example-contents"><p>Il precedente esempio visualizzerà
qualcosa simile a:</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">&#039;Timeticks: (0) 0:00:00.00&#039;
&#039;0:00:00.00&#039;</pre>
</div>
   </div>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.snmp-set-quick-print-seealso">
  <h3 class="title">Vedere anche:</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.snmp-get-quick-print.php" class="function" rel="rdfs-seeAlso">snmp_get_quick_print()</a> - Fetches the current value of the NET-SNMP library's quick_print setting</span></li>
  </ul>
 </div>


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