mysqli_get_server_info
mysqli->server_info
Returns the version of the MySQL server
Description
Procedural style:
stringmysqli_get_server_info
objectlink
Object oriented style (property):
mysqli
stringserver_info
Returns a string representing the version of the MySQL server that the
MySQLi extension is connected to (represented by the
link parameter).
&reftitle.returnvalues;
A character string representing the server version.
See also
mysqli_get_client_info,
mysqli_get_client_version,
mysqli_get_server_version
Example
Object oriented style
server_info);
/* close connection */
$mysqli->close();
?>
]]>
Procedural style
]]>
The above examples would produce the following output: