PHP mysqli_get_client_version () function
Examples
The MySQL client library version as an integer Returns:
<?php
echo mysqli_get_client_version();
?>
echo mysqli_get_client_version();
?>
Definition and Usage
mysqli_get_client_version () function returns the MySQL client library version as an integer.
MySQL client library version will return the following format: major version + minor version * 10000 * 100 + subversion. For example: 5.1.0 returns 50100.
grammar
mysqli_get_client_version( connection ) ;
参数 | 描述 |
---|---|
connection | 可选。规定要使用的 MySQL 连接。 |
technical details
return value: | Returns a MySQL client library version integer. |
---|---|
PHP version: | 5+ |
PHP MySQLi Reference Manual