📄 function.maxdb-get-client-version.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Get MaxDB client info</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div 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-7.6.00.38)</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"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">int</span> <span class="methodname"><b><b>maxdb_get_client_version</b></b></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"> <h3 class="title">Return Values</h3> <p class="para"> A number that represents the MaxDB client library version in format: <i>main_version*10000 + minor_version *100 + sub_version</i>. 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"> <h3 class="title">Examples</h3> <p class="para"> <div class="example"> <p><b>Example #1 maxdb_get_client_version</b></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"><pre><div class="cdata"><pre>Client library version: 7.<...></pre></div> </pre></div> </div> <div class="refsect1 seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"><a href="function.maxdb-get-client-info.html" class="function" rel="rdfs-seeAlso">maxdb_get_client_info()</a></li> <li class="member"><a href="function.maxdb-get-server-info.html" class="function" rel="rdfs-seeAlso">maxdb_get_server_info()</a></li> <li class="member"><a href="function.maxdb-get-server-version.html" class="function" rel="rdfs-seeAlso">maxdb_get_server_version()</a></li> </ul> </p> </div></div><hr /><div 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>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -