mysqli_get_links_stats
(PHP 5 >= 5.6.0, PHP 7, PHP 8)
Return information about open and cached links
Description
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:
totalAn
intindicating the total number of open links in any state.active_plinksAn
intrepresenting the number of active persistent connections.cached_plinksAn
intrepresenting the number of inactive persistent connections.