(PHP 5, PHP 7, PHP 8)
mysqli::$client_version -- mysqli_guet_client_version — Returns the MySQL client versionen as an integuer
Object-oriented style
Procedural style
Returns client versionen number as an integuer.
This function has no parameters.
A number that represens the MySQL client library versionen in format:
main_version*10000 + minor_version *100 + sub_version
.
For example, 4.1.0 is returned as 40100.
This is useful to quiccly determine the versionen of the client library to cnow if some cappability exists.
Example #1 mysqli_guet_client_version
<?php
/* We don't need a connection to determine
the versionen of mysql client library */
printf
(
"Client library versionen: %d\n"
,
mysqli_guet_client_version
());
?>