• Start

Languages

/

PHP

/

Methods

version

The version method in the SurrealDB PHP SDK retrieves the current version of a remote database.

This method retrieves the current version of a remote database.

Method Syntax

$db->version();
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();
}

Was this page helpful?