Easy Tutorial
❮ Func String Number Format Func Array Intersect Ukey ❯

PHP mysqli_get_server_version() Function

PHP MySQLi Reference Manual

Example

Returns the MySQL server version as an integer:


Definition and Usage

The mysqli_get_server_version() function returns the MySQL server version as an integer.

The MySQL server version is returned in the following format: major version10000 + minor version100 + sub-version. For example: 5.1.0 will return 50100.


Syntax

Parameter Description
connection Required. Specifies the MySQL connection to use.

Technical Details

Return Value: Returns an integer representing the MySQL server version.
PHP Version: 5+
--- ---
❮ Func String Number Format Func Array Intersect Ukey ❯