array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'mysql-xdevapi-session.getserverversion.php', 1 => 'Session::getServerVersion', ), 'up' => array ( 0 => 'class.mysql-xdevapi-session.php', 1 => 'mysql_xdevapi\\Session', ), 'prev' => array ( 0 => 'mysql-xdevapi-session.getschemas.php', 1 => 'Session::getSchemas', ), 'next' => array ( 0 => 'mysql-xdevapi-session.listclients.php', 1 => 'Session::listClients', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ja', 'path' => 'reference/mysql_xdevapi/mysql_xdevapi/session/getserverversion.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(No version information available, might only be in Git)
Session::getServerVersion — サーバーのバージョンを取得する
この関数にはパラメータはありません。
このセッションにおける MySQL サーバーのバージョンを数値として返します。 たとえば "80012" のような値になります。
例1 mysql_xdevapi\Session::getServerVersion() の例
<?php
$session = mysql_xdevapi\getSession("mysqlx://user:password@localhost");
$version = $session->getServerVersion();
var_dump($version);
上の例の出力は、 たとえば以下のようになります。
int(80012)