← All docs

mysqli_get_proto_info()

Returns the MySQL protocol version in use.

mysqli_get_proto_info()

function mysqli_get_proto_info(mixed $mysql): int

Returns the MySQL protocol version in use.

Parameters:

  • $mysql (mixed)

Returns: int

Availability

  • Compiled (AOT): supported through an injected elephc-PHP prelude.
  • eval() (magician interpreter): not available inside eval’d code.

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how mysqli_get_proto_info is implemented in the compiler, see the internals page.