Skip to content

getProtocolVersion

Corey Avis edited this page Sep 23, 2026 · 2 revisions

getProtocolVersion

Retrieves the MySQL protocol version used by the current connection.

📌 This information is also automatically collected and included in the global report returned by getDiagnostics().

Usage

getProtocolVersion(): integer

Parameters

  • Takes no arguments.

Return Value

(integer) : Returns an integer representing the MySQL protocol version.

Examples

$db->getProtocolVersion()

Debug Errors

  • No debug errors.

Related Methods

getDiagnostics | getHostInfo | getServerVersion


Home | CoreyDB | Environment

Clone this wiki locally