Session::getServerVersion

(No version information available, might only be in Git)

Session::getServerVersionサーバのバージョンを取得する

説明

public mysql_xdevapi\Session::getServerVersion(): int

このセッションにおける MySQL サーバのバージョンを取得する

パラメータ

この関数にはパラメータはありません。

返り値

このセッションにおける MySQL サーバのバージョンを数値として返します。 たとえば "80012" のような値になります。

例1 mysql_xdevapi\Session::getServerVersion() の例

<?php
$session 
mysql_xdevapi\getSession("mysqlx://user:password@localhost");

$version $session->getServerVersion();

var_dump($version);

上の例の出力は、 たとえば以下のようになります。

int(80012)
add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top