->version()

This method retrieves the current version of a remote database.

Method Syntax

$db->version();

Example usage

try {
$version = $db->version();
echo "The remote database is running version $version.";
} catch (Exception $e) {
echo "An error occurred while retrieving the version: " . $e->getMessage();
}