⇧
vadnica-logo
My Services About the Project Telegram O meni O meni

mysqli_get_server_version()

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.

EXAMPLE
RESULT
The result will be displayed here...

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: