| 5 database.mysqli.inc | db_version() |
| 5 database.pgsql.inc | db_version() |
| 5 database.mysql.inc | db_version() |
| 6 database.mysqli.inc | db_version() |
| 6 database.mysql.inc | db_version() |
| 6 database.pgsql.inc | db_version() |
Returns the version of the database server currently in use.
Return value
Database server version
Related topics
3 calls to db_version()
File
- includes/
database.mysqli.inc, line 45 - Database interface code for MySQL database servers using the mysqli client libraries. mysqli is included in PHP 5 by default and allows developers to use the advanced features of MySQL 4.1.x, 5.0.x and beyond.
Code
function db_version() {
global $active_db;
list($version) = explode('-', mysqli_get_server_info($active_db));
return $version;
}
Login or register to post comments