php8.5
Home/ Manual/ mysqli / mysqli/ mysqli::$client_info

mysqli::$client_info

PHP function Edit on GitHub ✎

Get MySQL client info

Description

Oop

stringmysqli->client_info

mysqli::get_client_info(): string

Procedural

mysqli_get_client_info(mysqli|null $mysql = null): string

Returns a string that represents the MySQL client library version.

Parameters 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

mysqli_get_client_info

php
<?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

Source: reference/mysqli/mysqli/get-client-info.xml · from the official PHP manual (php/doc-en)