php The mysqli_get_client_version function is used to return the MySQL client library version as an integer. Its syntax is mysqli_get_client_version(connection). The parameter connection is optional and refers to the MySQL connection to be used.
php How to use the mysqli_get_client_version function?
Definition and Usage
The mysqli_get_client_version() function returns the MySQL client library version as an integer.
MySQL client library version will be returned in the following format:
Major version*10000 Minor version*100 subversion. For example: 5.1.0 will return 50100.
Syntax
mysqli_get_client_version(connection);
Parameters
connection Optional. Specifies the MySQL connection to use.
Return value: Returns an integer indicating the MySQL client library version.
PHP Version: 5
Instance
Return the MySQL client library version as an integer:
<?php echo mysqli_get_client_version(); ?>
The above is the detailed content of How to use php mysqli_get_client_version function. For more information, please follow other related articles on the PHP Chinese website!