6.5.26mysql_get_client_info

Copyright 1997-2021 the PHP Documentation Group.

  • mysql_get_client_info

    Get MySQL client info

Warning

This extension was deprecated in PHP 5.5.0, and it was removed in PHP 7.0.0. Instead, theMySQLiorPDO_MySQLextension should be used. See alsoMySQL: choosing an APIguide. Alternatives to this function include:

mysqli_get_client_info
PDO::getAttribute(PDO::ATTR_CLIENT_VERSION)

Description

stringmysql_get_client_info();

mysql_get_client_inforeturns a string that represents the client library version.

Return Values

The MySQL client version.

Examples

Example 6.33mysql_get_client_infoexample

The above example will output something similar to:

MySQL client info: 3.23.39


See Also

mysql_get_host_info
mysql_get_proto_info
mysql_get_server_info