Snmp_set_quick_print
(PHP3 >= 3.0.8, PHP4 >= 4.0b2)
Snmp_set_quick_print---&http://www.aliyun.com/zixun/aggregation/37954.html ">nbsp; Set the value of quick_print in the UCD SNMP FUNCTION LIBRARY
Syntax: void Snmp_set_quick_print (Boolean quick_print)
Description:
Sets the value of the internal quick_print of the UCD snmp function LIBRARY. When it is set to (1), the SNMP function library returns the value of ' quick_print ', meaning that it only displays its value. When it is set to (0), the UCD SNMP function library Displays additional information that contains a value's form (for example, IPAddress or OID) and, in addition, it displays an additional three characters or a hexadecimal value of less than three characters.
When you use the returned information without displaying it, you usually use the quick_print.
Example:
<?php
Snmp_set_quick_print (0);
$a = Snmpget ("127.0.0.1", "public", ". 1.3.6.1.2.1.2.2.1.9.1");
echo "$a <br>\n"; Snmp_set_quick_print (1);
$a = Snmpget ("127.0.0.1", "public", ". 1.3.6.1.2.1.2.2.1.9.1");
echo "$a <br>\n";
?>
The first shown value of the above example may be: ' Timeticks: (0) 0:00:00.00 ', if set to 1 will only show ' 0:00:00.00 '.
The UCD SNMP function library Preset Returns a lengthy value that can be passed back only using Quick_print.
The string still returns extra quotes, which will be corrected in later versions.
When using the UCD SNMP function LIBRARY, snmp_get_quick_print () is valid, and this function is not valid when using the Windows SNMP function library.