The mysqli_get_proto_info() function returns the MySQL protocol version.
Return the MySQL protocol version:
mysqli_get_proto_info(connection);