snmp_get_valueretrieval

(PHP 4 >= 4.3.3, PHP 5, PHP 7)

snmp_get_valueretrieval Return the method how the SNMP values will be returned

说明

snmp_get_valueretrieval ( void ) : int

返回值

OR-ed combitantion of constants ( SNMP_VALUE_LIBRARY or SNMP_VALUE_PLAIN ) with possible SNMP_VALUE_OBJECT set.

范例

Example #1 Using 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;
 }
?>

参见

相关文章
php gettext 函数 specify the character encoding in which the messages from the domain message catalog will be returnedphp cubrid mysql 兼容性函数 return an array with the lengths of the values of each field from the current rowphp cubrid mysql 兼容性函数 return a numerical array with the values of the current rowphp enchant 函数 will return a list of values if any of those pre conditions are not metphp gupnp 函数 sets the specified action return valuesphp firebird/interbase 函数 return an error codephp firebird/interbase 函数 return information about a parameter in a prepared queryphp mcve 函数 get the raw comma delimited data returned from mcvephp ncurses 函数 checks if terminal color definitions can be changedphp runkit 函数 determines if the current functions return value will be usedphp snmp 函数 return the method how the snmp values will be returnedphp snmp 函数 return all values that are enums with their enum value instead of the raw integerphp snmp 函数 specify the method how the snmp values will be returnedphp snmp 函数 return all objects including their respective object id within the specified onephp snmp 函数 return all objects including their respective object id within the specified onephp svn 函数 creates and returns a stream that will be used to replacephp sdo das relational 函数 executes an sql query passed as a prepared statement with a list of values to substitute for placeholders and return the results as a normalised data graphphp solrquery returns the list of fields that will be returned in the responsephp solrquery returns if a field will only be highlighted if the query matched in this particular fieldphp solrquery set if the query will be boosted by the interesting term relevance
关注编程学问公众号