array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.mysql-get-client-info.php', 1 => 'mysql_get_client_info', ), 'up' => array ( 0 => 'ref.mysql.php', 1 => 'MySQL 函数', ), 'prev' => array ( 0 => 'function.mysql-free-result.php', 1 => 'mysql_free_result', ), 'next' => array ( 0 => 'function.mysql-get-host-info.php', 1 => 'mysql_get_host_info', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'zh', 'path' => 'reference/mysql/functions/mysql-get-client-info.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4 >= 4.0.5, PHP 5)
mysql_get_client_info — 取得 MySQL 客户端信息
本扩展自 PHP 5.5.0 起已废弃,并在自 PHP 7.0.0 开始被移除。应使用 MySQLi 或 PDO_MySQL 扩展来替换之。参见 MySQL:选择 API 指南来获取更多信息。用以替代本函数的有:
attribute
as PDO::ATTR_CLIENT_VERSION
此函数没有参数。
MySQL 客户端版本。
示例 #1 mysql_get_client_info() 示例
<?php
printf("MySQL client info: %s\n", mysql_get_client_info());
?>
以上示例的输出类似于:
MySQL client info: 3.23.39