PHP mysqli_get_client_version() 函数

PHP 教程 · 2019-01-28 06:13:17

实例

将 MySQL 客户端库版本作为整数返回:

<?php

echo mysqli_get_client_version();

?>

定义和用法

mysqli_get_client_version() 函数将 MySQL 客户端库版本作为整数返回。

MySQL 客户端库版本将按照以下格式返回: 主要版本*10000 + 次要版本*100 + 子版本。例如:5.1.0 将返回 50100。

语法

mysqli_get_client_version(connection);

参数 描述
connection 可选。规定要使用的 MySQL 连接。

技术细节

返回值: 返回一个表示 MySQL 客户端库版本的整数。
PHP 版本: 5+

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

查看所有标签

Python Algorithms

Python Algorithms

Magnus Lie Hetland / Apress / 2010-11-24 / USD 49.99

Python Algorithms explains the Python approach to algorithm analysis and design. Written by Magnus Lie Hetland, author of Beginning Python, this book is sharply focused on classical algorithms, but it......一起来看看 《Python Algorithms》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

SHA 加密
SHA 加密

SHA 加密工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换