跳转到主要内容

get-client-info

mysqli::$client_info

mysqli::get_client_info

mysqli_get_client_info

Get MySQL client info

ENTITY

ENTITY

string

mysqli-ENTITYclient_info

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

public

string

mysqli::get_client_info

ENTITY

string

mysqli_get_client_info

mysqli

null

mysql

ENTITY

Returns a string that represents the MySQL client library version.

ENTITY ENTITY

ENTITY

A string that represents the MySQL client library version.

ENTITY

ENTITY ENTITY
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.

ENTITY

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());
?>

    

ENTITY

mysqli_get_client_version, mysqli_get_server_info, mysqli_get_server_version