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 adds a new method to a given classphp cubrid mysql 兼容性函数 return an array with the lengths of the values of each field from the current rowphp cubrid mysql 兼容性函数 fetch the next row and return it as an objectphp cubrid mysql 兼容性函数 return a numerical array with the values of the current rowphp cubrid 函数 return the cubrid server versionphp ibm db2 函数 returns a string containing the sqlstate returned by the last connection attemptphp 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 函数 register a callback function to be called when events are postedphp id3 函数 get all possible genre 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 函数 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 response
关注编程学问公众号