Return statistics about each process of the client:
<?php$con=mysqli_connect("localhost","my_user","my_password","my_db");//Detect connection if (mysqli_connect_errno($con)) { echo "Database connection failed: " . mysqli_connect_error(); }print_r(mysqli_get_client_stats());mysqli_close($con);?>The mysqli_get_client_stats() function returns statistics about each process of the client.
mysqli_get_client_stats() ;
Return value: | Returns an array with client statistics if successful, or FALSE if failed. |
---|---|
PHP version: | 5.3+ |