Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP mysqli_get_proto_info() Function

PHP mysqli_get_proto_info() Function

PHP MySQLi Reference Manual PHP MySQLi Reference Manual

Example

Return the MySQL protocol version:


Definition and Usage

The mysqli_get_proto_info() function returns the MySQL protocol version.


Syntax

mysqli_get_proto_info(

connection

)

;

Parameters Description
connection Required. Specifies the MySQL connection to use.

Technical Details

Return Value: Returns an integer representing the MySQL protocol version.
PHP Version: 5+

PHP MySQLi Reference Manual PHP MySQLi Reference Manual