MySQLi Tutorial MySQLi References

mysqli_get_links_stats() Function



The mysqli_get_links_stats() function returns information about open and cached MySQL links.

Syntax

mysqli_get_links_stats()

Parameters

No parameter is required.

Return Value

Returns an associative array with three elements. The keys are as follows:

  • total - An int indicating the total number of open links in any state.
  • active_plinks - An int representing the number of active persistent connections.
  • cached_plinks - An int representing the number of inactive persistent connections.

❮ MySQLi Functions Reference