Documentation Home
Connectors and APIs Manual
Download this Manual
PDF (US Ltr) - 5.3Mb
PDF (A4) - 5.3Mb


Connectors and APIs Manual  /  ...  /  mysqli::$client_info, mysqli::get_client_info, mysqli_get_client_info

7.3.8.18 mysqli::$client_info, mysqli::get_client_info, mysqli_get_client_info

Copyright 1997-2022 the PHP Documentation Group.

  • mysqli::$client_info

    mysqli::get_client_info

    mysqli_get_client_info

    Get MySQL client info

Description

Object-oriented style

string mysqli->client_info ;
public string mysqli::get_client_info();

Procedural style

string mysqli_get_client_info(mysqli|null mysql= =null);

Returns a string that represents the MySQL client library version.

Parameters

This function has no parameters.

Return Values

A string that represents the MySQL client library version.

Changelog
VersionDescription
8.1.0Calling mysqli_get_client_info with the mysql argument has been deprecated. This function never required a parameter, but incorrectly allowed it as an optional parameter.
8.1.0The object-oriented style mysqli::get_client_info has been deprecated.
Examples

Example 7.53 mysqli_get_client_info

<?php
/* We don't need a connection to determine
   the version of mysql client library */
printf("Client library version: %s\n", mysqli_get_client_info());
?>


See Also

mysqli_get_client_version
mysqli_get_server_info
mysqli_get_server_version