PHP mysqli_get_proto_info() Function

PHP mysqli_get_proto_info() function returns the version of the MySQL protocol used.

Syntax

mysqli_get_proto_info() Function Parameter

ParameterDescription
Connection :Required parameter. The MySQL connection to be used.

mysqli_get_proto_info() Function Return Value

Return Values :Returns an integer representing the protocol version.

mysqli_get_proto_info() Function Example