Retrieves the MySQL server version.

Return Return

(string|null) Version number on success, null on failure.

Top ↑

Source Source

File: wp-includes/wp-db.php

	public function db_version() {
		return preg_replace( '/[^0-9.].*/', '', $this->db_server_info() );

Top ↑

Changelog Changelog

Version Description
2.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.