赣南脐橙

佰草伐

导航

PHP mysqli_get_connection_stats() 函数

定义和用法

mysqli_get_connection_stats() 函数返回有关客户端连接的统计。


语法

mysqli_get_connection_stats(connection);

返回有关客户端连接的统计:

<?php
$con=mysqli_connect("localhost","my_user","my_password","my_db");
// 检测连接
if (mysqli_connect_errno($con))
{
    echo "数据库连接失败: " . mysqli_connect_error();
}

print_r(mysqli_get_connection_stats($con));

mysqli_close($con);
?>

 

posted on 2019-07-16 14:58  佰草伐  阅读(164)  评论(0编辑  收藏  举报

自定义导航网站

php基础知识

Wood Furniture