php8.5
Home/ Manual/ mysqli / functions/ mysqli_get_links_stats

mysqli_get_links_stats

PHP function Edit on GitHub ✎

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

Return information about open and cached links

Description

mysqli_get_links_stats(): array

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

Parameters Parameters

Return Values

mysqli_get_links_stats() returns an associative array with three elements, keyed 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.

Source: reference/mysqli/functions/mysqli-get-links-stats.xml · from the official PHP manual (php/doc-en)