Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<mysqli::get_charsetmysqli::$client_version>
^mysqliLast updated: Mon, 26 Oct 2026

mysqli::$client_info

mysqli::get_client_info

mysqli_get_client_info

(PHP 5, PHP 7, PHP 8)

mysqli::$client_info -- mysqli::get_client_info -- mysqli_get_client_info — Get MySQL client info

Description

Object-oriented style

#[\Deprecated(
    since: '8.1',
    message: 'use mysqli_get_client_info() instead',
)]

public function mysqli::get_client_info(): string

Procedural style

function mysqli_get_client_info(?mysqli $mysql = null): string

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

Version Description
8.1.0 Calling 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.0 The object-oriented style mysqli::get_client_info() has been deprecated.

Examples

Example #1 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_charsetmysqli::$client_version>
^mysqliLast updated: Mon, 26 Oct 2026