PHP mysqli: get_client_info() function
mysqli_get_client_info() function / mysqli::get_client_info
The mysqli_get_client_info() function / mysqli::get_client_info returns the MySQL client library version.
Syntax:
Object oriented style
string mysqli::get_client_info ( void )
Procedural style
string mysqli_get_client_info ( mysqli $link )
Usage: Procedural style
mysqli_get_client_info(connection);
Parameter:
Name | Description | Required/Optional |
---|---|---|
connection | Specifies the MySQL connection to use. | Required |
Return value:
A string that represents the MySQL client library version.
Version: PHP 5, PHP 7
Example:
<?php
echo mysqli_get_client_info();
?>
Output:
mysqlnd 5.0.5-dev - 081106 - $Revision: 1.3.2.27 $
See also
Previous: get_charset
Next:
get_client_stats
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://www.w3resource.com/php/function-reference/mysqli_get_client_info.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics