The mysqli_get_client_info() function returns the MySQL client library version.
mysqli_get_client_info(connection);
Parameter | Is Required | Description |
---|---|---|
connection | Optional. | MySQL connection |
Return the MySQL client library version.
Get the MySQL client library version.
<?php// www .ja v a2 s . com
$con=mysqli_connect("localhost","my_user","my_password","my_db");
if (mysqli_connect_errno($con)){
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
print_r(mysqli_get_client_info($con));
mysqli_close($con);
?>