• « mysqli_get_client_stats
  • mysqli_get_metadata »
  • PHP 5 Manual
  • Aliases and deprecated Mysqli Functions
  • Return information about open and cached links
Edit Report a Bug GitHub logo

mysqli_get_links_stats

(PHP 5 >= 5.6.0, PHP 7)

mysqli_get_links_stats — Return information about open and cached links

Description

mysqli_get_links_stats ( void ) : array

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

Parameters

This function has no parameters.

Return Values

mysqli_get_links_stats() returns an associative array with three elements, keyed as follows:

total

An integer indicating the total number of open links in any state.

active_plinks

An integer representing the number of active persistent connections.

cached_plinks

An integer representing the number of inactive persistent connections.

  • Other versions of this page
    • PHP 5
    • PHP 7 (php.net)
    • PHP 8 (php.net)
Legacy manuals maintained by Home
  • Get help migrating a legacy app
  • Extend PHP support for EOL versions