<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Get MaxDB client info</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.maxdb-get-client-info.html">maxdb_get_client_info</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.maxdb-get-host-info.html">maxdb_get_host_info</a></div> <div class="up"><a href="ref.maxdb.html">MaxDB Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.maxdb-get-client-version" class="refentry"> <div class="refnamediv"> <h1 class="refname">maxdb_get_client_version</h1> <p class="verinfo">(PECL maxdb >= 1.0)</p><p class="refpurpose"><span class="refname">maxdb_get_client_version</span> — <span class="dc-title">Get MaxDB client info</span></p> </div> <div class="refsect1 description" id="refsect1-function.maxdb-get-client-version-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">int</span> <span class="methodname"><strong>maxdb_get_client_version</strong></span> ( <span class="methodparam">void</span> )</div> <p class="para rdfs-comment"> Returns client version number as an integer. </p> </div> <div class="refsect1 returnvalues" id="refsect1-function.maxdb-get-client-version-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> A number that represents the MaxDB client library version in format: <em>main_version*10000 + minor_version *100 + sub_version</em>. For example, 7.5.0 is returned as 70500. </p> <p class="para"> This is useful to quickly determine the version of the client library to know if some capability exists. </p> </div> <div class="refsect1 examples" id="refsect1-function.maxdb-get-client-version-examples"> <h3 class="title">Examples</h3> <p class="para"> <div class="example" id="example-1276"> <p><strong>Example #1 maxdb_get_client_version</strong></p> <div class="example-contents"> <div class="phpcode"><code><span style="color: #000000"> <span style="color: #0000BB"><?php<br /><br /></span><span style="color: #FF8000">/* We don't need a connection to determine<br /> the version of MaxDB client library */<br /><br /></span><span style="color: #0000BB">printf</span><span style="color: #007700">(</span><span style="color: #DD0000">"Client library version: %d\n"</span><span style="color: #007700">, </span><span style="color: #0000BB">maxdb_get_client_version</span><span style="color: #007700">());<br /></span><span style="color: #0000BB">?></span> </span> </code></div> </div> </div> </p> <p class="para">The above example will output something similar to:</p> <div class="example-contents screen"> <div class="cdata"><pre> Client library version: 7.<...> </pre></div> </div> </div> <div class="refsect1 seealso" id="refsect1-function.maxdb-get-client-version-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="function"><a href="function.maxdb-get-client-info.html" class="function" rel="rdfs-seeAlso">maxdb_get_client_info()</a> - Returns the MaxDB client version as a string</span></li> <li class="member"> <span class="function"><a href="function.maxdb-get-server-info.html" class="function" rel="rdfs-seeAlso">maxdb_get_server_info()</a> - Returns the version of the MaxDB server</span></li> <li class="member"> <span class="function"><a href="function.maxdb-get-server-version.html" class="function" rel="rdfs-seeAlso">maxdb_get_server_version()</a> - Returns the version of the MaxDB server as an integer</span></li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.maxdb-get-client-info.html">maxdb_get_client_info</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.maxdb-get-host-info.html">maxdb_get_host_info</a></div> <div class="up"><a href="ref.maxdb.html">MaxDB Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>