<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<refentry xml:id="mysqli.get-client-version" xmlns="http://docbook.org/ns/docbook">
 <refnamediv>
  <refname>mysqli::$client_version</refname>
  <refname>mysqli_get_client_version</refname>
  <refpurpose>Returns the MySQL client version as an integer</refpurpose>
 </refnamediv>

 <refsect1 role="description">
  &reftitle.description;
  <para>&style.oop;</para>
  <fieldsynopsis><type>int</type><varname linkend="mysqli.get-client-version">mysqli-&gt;client_version</varname></fieldsynopsis>
  <para>&style.procedural;</para>
  <methodsynopsis>
   <type>int</type><methodname>mysqli_get_client_version</methodname>
   <void/>
  </methodsynopsis>
  <para>
   Returns client version number as an integer.
  </para>
 </refsect1>

 <refsect1 role="parameters">
  &reftitle.parameters;
  &no.function.parameters;
 </refsect1>

 <refsect1 role="returnvalues">
  &reftitle.returnvalues;
  <para>
   A number that represents the MySQL client library version in format:
   <literal>main_version*10000 + minor_version *100 + sub_version</literal>.
   For example, 4.1.0 is returned as 40100.
  </para>
  <para>
   This is useful to quickly determine the version of the client library
   to know if some capability exists.
  </para>
 </refsect1>

 <refsect1 role="examples">
  &reftitle.examples;
  <para>
   <example>
    <title>mysqli_get_client_version</title>
    <programlisting role="php">
<![CDATA[
<?php

/* We don't need a connection to determine
   the version of mysql client library */

printf("Client library version: %d\n", mysqli_get_client_version());
?>
]]>
    </programlisting>
   </example>
  </para>
 </refsect1>

 <refsect1 role="seealso">
  &reftitle.seealso;
  <para>
   <simplelist>
    <member><function>mysqli_get_client_info</function></member>
    <member><function>mysqli_get_server_info</function></member>
    <member><function>mysqli_get_server_version</function></member>
   </simplelist>
  </para>
 </refsect1>

</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
