PHP Function Reference

PHP mysqli $client_info Property



The PHP mysqli::$client_info / mysqli::get_client_info() / mysqli_get_client_info() function returns a string that represents the MySQL client library version.

Syntax

//Object-oriented style
$mysqli->client_info;
public mysqli::get_client_info();

//Procedural style
mysqli_get_client_info()

Parameters

No parameter is required.

Return Value

Returns a string that represents the MySQL client library version.

Example: mysqli_get_client_info() example

The example below shows the usage of mysqli_get_client_info() function.

<?php
//there is no need of a connection to determine 
//the version of mysql client library
printf("Client library version: %s\n", mysqli_get_client_info());
?>

The output of the above code will be similar to:

Client library version: 4.1.2-alpha-debug

❮ PHP MySQLi Reference