PHP mysqli_get_client_stats() 函数

PHP 教程 · 2019-01-28 05:57:09

实例

返回有关客户端每个进程的统计:

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

print_r(mysqli_get_client_stats());

mysqli_close($con);
?>

定义和用法

mysqli_get_client_stats() 函数返回有关客户端每个进程的统计。

语法

mysqli_get_client_stats();

技术细节

返回值: 如果成功则返回一个带有客户端统计的数组,如果失败则返回 FALSE。
PHP 版本: 5.3+

点击查看所有 PHP 教程 文章: https://www.codercto.com/courses/l/5.html

查看所有标签

Distributed Systems

Distributed Systems

Sukumar Ghosh / Chapman and Hall/CRC / 2014-7-14 / USD 119.95

Distributed Systems: An Algorithmic Approach, Second Edition provides a balanced and straightforward treatment of the underlying theory and practical applications of distributed computing. As in the p......一起来看看 《Distributed Systems》 这本书的介绍吧!

在线进制转换器
在线进制转换器

各进制数互转换器

URL 编码/解码
URL 编码/解码

URL 编码/解码

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具