The mysqli_get_server_version() function returns the MySQL server version as an integer. The
calculation format is major_version * 10000 + minor_version * 100 + sub_version. Thus, version 10.4.32
is output as 100432.
Practical use: The numeric format is extremely useful for programmatically checking server capabilities before executing more demanding SQL commands. Look at the example output below: