<?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 => 'de',
  ),
  'this' => 
  array (
    0 => 'function.snmp-set-quick-print.php',
    1 => 'snmp_set_quick_print',
    2 => 'Setzt den Wert von enable innerhalb der
   NET-SNMP-Bibliothek',
  ),
  'up' => 
  array (
    0 => 'ref.snmp.php',
    1 => 'SNMP-Funktionen',
  ),
  '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' => 'de',
    '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">
   Setzt den Wert von <code class="parameter">enable</code> innerhalb der
   NET-<abbr title="Simple Network Management Protocol">SNMP</abbr>-Bibliothek
  </span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.snmp-set-quick-print-description">
  <h3 class="title">Beschreibung</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">
   Setzt den Wert von <code class="parameter">enable</code> innerhalb der
   NET-<abbr title="Simple Network Management Protocol">SNMP</abbr>-Bibliothek. Falls es gesetzt ist (1), gibt die
   <abbr title="Simple Network Management Protocol">SNMP</abbr>-Bibliothek &#039;quick printed&#039;-Werte zurück. Das
   bedeutet, dass nur der Wert ausgegeben wird. Wenn
   <code class="parameter">enable</code> nicht aktiviert ist (Standardeinstellung),
   gibt die NET-<abbr title="Simple Network Management Protocol">SNMP</abbr>-Bibliothek zusätzliche Informationen
   aus, einschließlich des Typs des Wertes (d. h. IpAddress oder OID). Darüber
   hinaus gibt die Bibliothek für alle Werte mit weniger als vier Zeichen
   Hex-Werte aus, wenn quick_print nicht aktiviert ist.
  </p>
  <p class="simpara">
   Standardmäßig gibt die NET-<abbr title="Simple Network Management Protocol">SNMP</abbr>-Bibliothek ausführliche
   Werte zurück; quick_print wird verwendet, um nur den Wert zurückzugeben.
  </p>
  <p class="simpara">
   Zurzeit werden Zeichenketten immer noch mit zusätzlichen Anführungszeichen
   zurückgegeben; dies wird in einer späteren Version korrigiert.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.snmp-set-quick-print-parameters">
  <h3 class="title">Parameter-Liste</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">Rückgabewerte</h3>
  <p class="simpara">
   Gibt immer <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> zurück.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.snmp-set-quick-print-changelog">
  <h3 class="title">Changelog</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version</th>
      <th>Beschreibung</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
 <td>8.2.0</td>
 <td>
  Der Rückgabewert ist nun <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> vorher war es <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">Beispiele</h3>
  <p class="simpara">
   quick_print wird oft verwendet, um die Informationen, die zurückgegeben
   werden, weiterzuverwenden anstatt sie auszugeben.
  </p>
  <div class="example" id="example-1">
   <p><strong>Beispiel #1 Verwendung von <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>Das oben gezeigte Beispiel erzeugt
eine ähnliche Ausgabe wie:</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">Siehe auch</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> - Holt den aktuellen Wert der quick_print-Einstellung der NET-SNMP-Bibliothek</span></li>
  </ul>
 </div>


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