mysql_get_proto_info()
int mysql_get_proto_info([connection])This function returns the protocol version for the current connection to MySQL. You may give an identifier to retrieve the protocol version for a different connection. Here is an example:
... $info = mysql_get_proto_info( ); print "Protocol Version: $info \n"; ...
Here are the results of running this script:
Protocol Version: 10