PHP mysqli_get_client_stats() function returns client per-process statistics.
Syntax
array mysqli_get_client_stats(void);
Parameter | Description |
---|---|
NA | NA |
Return Values : | Returns an array with client stats if success, FALSE otherwise. |
<?php $con = mysqli_get_charset("localhost","user","password","db"); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } // Get client per-process statistics echo mysqli_get_client_stats(); ?>