The mysqli_get_proto_info() function returns an integer representing the MySQL protocol version used
for the currently active connection.
Practical use: Although this version rarely changes (most modern systems use protocol version 10), this information is important for more advanced connection diagnostics. Look at the output below: