(PHP 4 >= 4.3.3, PHP 5, PHP 7, PHP 8)
snmp_get_valueretrieval — Retorna o método como os valores SNMP serão retornados
Esta função não possui parâmetros.
   Combinação OR de constantes (SNMP_VALUE_LIBRARY ou
   SNMP_VALUE_PLAIN) com
   possível conjunto SNMP_VALUE_OBJECT.
  
Exemplo #1 Usando snmp_get_valueretrieval()
<?php
 $ret = snmpget('localhost', 'public', 'IF-MIB::ifName.1');
 if (snmp_get_valueretrieval() & SNMP_VALUE_OBJECT) {
   echo $ret->value;
 } else {
   echo $ret;
 }
?>
