This function is only available if using NET_SNMP.  It is NOT available if using UCD_SNMP.  Likewise UCD_SNMP supports some behaviors that NET_SNMP does not.  (found limitation by looking in php snmp.c file)(PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8)
snmp_set_enum_print — すべての enum を、実際の整数値ではなく enum 値とともに返す
この関数は、snmpwalk/snmpget などが自動的に MIB の enum 値を探して可読形式の文字列で返すかどうかを切り替えます。
enableこの値は boolean として Net-SNMP ライブラリが解釈します。"0" あるいは "1" しか指定できません。
   常に true を返します。
  
例1 snmp_set_enum_print() の使用法
<?php
 snmp_set_enum_print(0);
 echo snmpget('localhost', 'public', 'IF-MIB::ifOperStatus.3') . "\n";
 snmp_set_enum_print(1);
 echo snmpget('localhost', 'public', 'IF-MIB::ifOperStatus.3') . "\n";
?>上の例の結果は次のようになります。
INTEGER: up(1) INTEGER: 1
This function is only available if using NET_SNMP.  It is NOT available if using UCD_SNMP.  Likewise UCD_SNMP supports some behaviors that NET_SNMP does not.  (found limitation by looking in php snmp.c file)