<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.solr.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.solr-get-version.php',
    1 => 'solr_get_version',
    2 => '返回当前Solr扩展的版本',
  ),
  'up' => 
  array (
    0 => 'ref.solr.php',
    1 => 'Solr 函数',
  ),
  'prev' => 
  array (
    0 => 'ref.solr.php',
    1 => 'Solr 函数',
  ),
  'next' => 
  array (
    0 => 'solr.examples.php',
    1 => '示例',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'zh',
    'path' => 'reference/solr/functions/solr-get-version.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.solr-get-version" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">solr_get_version</h1>
  <p class="verinfo">(PECL solr &gt;= 0.9.1)</p><p class="refpurpose"><span class="refname">solr_get_version</span> &mdash; <span class="dc-title">返回当前Solr扩展的版本</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.solr-get-version-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>solr_get_version</strong></span>(): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="para rdfs-comment">
   函数已字符串形式返回扩展的当前版本。
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-function.solr-get-version-parameters">
  <h3 class="title">参数</h3>
  <p class="para">此函数没有参数。</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.solr-get-version-returnvalues">
  <h3 class="title">返回值</h3>
  
  <p class="para">
   获取成功则返回版本号，否则返回 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> 。
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-function.solr-get-version-errors">
  <h3 class="title">错误／异常</h3>
  <p class="para">
   此函数不抛出异常
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.solr-get-version-examples">
  <h3 class="title">示例</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>示例 #1 <span class="function"><strong>solr_get_version()</strong></span> 示例</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /><br />$solr_version </span><span style="color: #007700">= </span><span style="color: #0000BB">solr_get_version</span><span style="color: #007700">();<br /><br />print </span><span style="color: #0000BB">$solr_version</span><span style="color: #007700">;<br /><br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>以上示例的输出类似于：</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">0.9.6</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.solr-get-version-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="solrutils.getsolrversion.php" class="function" rel="rdfs-seeAlso">SolrUtils::getSolrVersion()</a> - Returns the current version of the Solr extension</span></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer($setup); ?>