Return stats about the client connection:
<?php
$con = mysqli_connect("localhost","my_user","my_password","my_db");
print_r(mysqli_get_connection_stats($con));
?>
The mysqli_get_connection_stats() function returns statistics about the client connection.
$mysqli -> get_connection_stats()
mysqli_get_connection_stats(
connection)
Parameter | Description |
---|---|
connection | Required. Specifies the MySQL connection to use |
Return Value: | Returns an array with connection stats on success. FALSE on failure |
---|---|
PHP Version: | 5.3+ |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!