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 classkit 函数 dynamically changes the code of the given methodphp 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 cubrid 函数 return the id generated for the last updated auto increment columnphp enchant 函数 will return a list of values if any of those pre conditions are not metphp gupnp 函数 sets the specified action return valuesphp 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 函数 fetch the snmp object which follows the given object idphp snmp 函数 return all objects including their respective object id within the specified onephp statistic 函数 calculates any one parameter of the cauchy distribution given values for the othersphp svn 函数 creates and returns a stream that will be used to replacephp svn 函数 return true if content is different false otherwisephp tidy 函数 return a string representing the parsed tidy markupphp 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 response
关注编程学问公众号