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 ldap 函数 replace attribute values with new onesphp parsekit 函数 compile a string of php code and return the resulting op arrayphp posix 函数 return the effective user id of the current processphp ps 函数 gets certain valuesphp runkit 函数 copies a method from class to anotherphp 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 函数 set the oid output formatphp 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
关注编程学问公众号