PHP 8.3.4 Released!

mysql_get_client_info

(PHP 4 >= 4.0.5, PHP 5)

mysql_get_client_info取得 MySQL 客户端信息

警告

本扩展自 PHP 5.5.0 起已废弃,并在自 PHP 7.0.0 开始被移除。应使用 MySQLiPDO_MySQL 扩展来替换之。参见 MySQL:选择 API 指南来获取更多信息。用以替代本函数的有:

说明

mysql_get_client_info(): string

mysql_get_client_info() 返回表示客户端库版本的字符串。

参数

此函数没有参数。

返回值

MySQL 客户端版本。

示例

示例 #1 mysql_get_client_info() 示例

<?php
printf
("MySQL client info: %s\n", mysql_get_client_info());
?>

以上示例的输出类似于:

MySQL client info: 3.23.39

参见

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top