mysql_get_proto_info([link_id])
This function returns an integer indicating the MySQL protocol version in use for the specified (link_id) or last opened MySQL connection (e.g. 10).