PHP mysqli_get_client_version()Functions
Examples
Return the MySQL client library version as an integer:
<?php
echo mysqli_get_client_version();
?>
echo mysqli_get_client_version();
?>
Definition and Usage
The mysqli_get_client_version() function returns the MySQL client library version as an integer.
The MySQL client library version will be returned in the following format: major version * 10000 + minor version * 100 + sub version. For example: 5.1.0 will return 50100.
Syntax
mysqli_get_client_version(connection);
| Parameter | Description |
|---|---|
| connection | Optional. Specifies the MySQL connection to use. |
Technical Details
| Return value: | Returns an integer representing the MySQL client library version. |
|---|---|
| PHP Version: | 5+ |
PHP MySQLi Reference Manual Other Extensions