array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'function.mysql-get-client-info.php', 1 => 'mysql_get_client_info', ), 'up' => array ( 0 => 'ref.mysql.php', 1 => 'MySQL 関数', ), 'prev' => array ( 0 => 'function.mysql-free-result.php', 1 => 'mysql_free_result', ), 'next' => array ( 0 => 'function.mysql-get-host-info.php', 1 => 'mysql_get_host_info', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ja', 'path' => 'reference/mysql/functions/mysql-get-client-info.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4 >= 4.0.5, PHP 5)
mysql_get_client_info — MySQL クライアント情報を取得する
この拡張モジュールは PHP 5.5.0 で非推奨になり、PHP 7.0.0 で削除されました。 MySQLi あるいは PDO_MySQL を使うべきです。詳細な情報は MySQL: API の選択 を参照ください。 この関数の代替として、これらが使えます。
attribute
に PDO::ATTR_CLIENT_VERSION
を指定する
この関数にはパラメータはありません。
MySQL クライアントのバージョンを返します。
例1 mysql_get_client_info() の例
<?php
printf("MySQL client info: %s\n", mysql_get_client_info());
?>
上の例の出力は、 たとえば以下のようになります。
MySQL client info: 3.23.39