Home  >  Article  >  Backend Development  >  How to use php mysqli_get_client_version function

How to use php mysqli_get_client_version function

藏色散人
藏色散人Original
2019-05-26 13:51:452543browse

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.

How to use php mysqli_get_client_version function

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn