Home > Backend Development > PHP Problem > How to use php mysqli_get_client_version function

How to use php mysqli_get_client_version function

藏色散人
Release: 2023-02-22 19:36:01
Original
2619 people have browsed it

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);
Copy after login

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();
?>
Copy after login

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!

Related labels:
php
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template