php8.5
Home/ Manual/ snmp / snmp/ SNMP::close

SNMP::close

PHP function Edit on GitHub ✎

(PHP 5 >= 5.4.0, PHP 7, PHP 8)

Close SNMP session

Description

SNMP::close(): bool

Frees previously allocated SNMP session object.

Parameters Parameters

Return Values

Success

Examples

SNMP::close example

php
<?php
  $session = new SNMP(SNMP::VERSION_1, "127.0.0.1", "public");
  # ...
  # get, walk, etc goes here
  # ...
  $session->close();
?>

See Also

  • SNMP::__construct

Source: reference/snmp/snmp/close.xml · from the official PHP manual (php/doc-en)