mysql_get_client_info() function in PHP

What is mysql_get_client_info() function in PHP?
How does mysql_get_client_info() works?

Explanation

This mysql_get_client_info() function gets MySQL client information.
Syntax
string mysql_get_client_info ( void )

Returns the MySQL client version number on success, or FALSE on failure.
mysql_get_client_info() returns a string that represents the client library version.
Example

<?php
//print client library version
printf("MySQL client info: %sn", mysql_get_client_info());
?>

RESULT:
MySQL client info: 3.23.39
See also:
mysql_get_host_info(), mysql_get_proto_info() and mysql_get_server_info().

PHP Topics


Ask Questions

Ask Question