mysql_get_proto_info
(PHP 4 >= 4.0.5, PHP 5)
mysql_get_proto_info — 取得 MySQL 协议信息
<h3>说明</h3>
 int <strong>mysql_get_proto_info</strong>
  ([ resource <code>$link_identifier</code>
] )
<p>
 <strong>mysql_get_proto_info()</strong> 返回
 <code>link_identifier</code>
 所使用的协议版本。如果省略
 <code>link_identifier</code>,则使用上一个打开的连接。
</p>
<p>
  <p><strong>Example #1 <strong>mysql_get_proto_info()</strong> 例子</strong></p><?php
mysql_connect("localhost", "mysql_user", "mysql_password") or
die("Could not connect: " . mysql_error());
printf ("MySQL protocol version: %sn", mysql_get_proto_info());
?>
  <p>
   以上例子将产生如下输出:
  </p>MySQL protocol version: 10
</p>
<p>
 参见
 mysql_get_client_info(),mysql_get_host_info() 和
 mysql_get_server_info()。
</p>