<!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>Returns the current version of the Apache Solr extension</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="ref.solr.html">Solr Functions</a></div> <div class="next" style="text-align: right; float: right;"><a href="solr.examples.html">Examples</a></div> <div class="up"><a href="ref.solr.html">Solr Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="function.solr-get-version" class="refentry"> <div class="refnamediv"> <h1 class="refname">solr_get_version</h1> <p class="verinfo">(PECL solr >= 0.9.1)</p><p class="refpurpose"><span class="refname">solr_get_version</span> — <span class="dc-title">Returns the current version of the Apache Solr extension</span></p> </div> <div class="refsect1 description" id="refsect1-function.solr-get-version-description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">string</span> <span class="methodname"><strong>solr_get_version</strong></span> ( <span class="methodparam">void</span> )</div> <p class="para rdfs-comment"> This function returns the current version of the extension as a string. </p> </div> <div class="refsect1 parameters" id="refsect1-function.solr-get-version-parameters"> <h3 class="title">Parameters</h3> <p class="para">This function has no parameters.</p> </div> <div class="refsect1 returnvalues" id="refsect1-function.solr-get-version-returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> It returns a string on success and <strong><code>FALSE</code></strong> on failure. </p> </div> <div class="refsect1 errors" id="refsect1-function.solr-get-version-errors"> <h3 class="title">Errors/Exceptions</h3> <p class="para"> This function throws no errors or exceptions. </p> </div> <div class="refsect1 examples" id="refsect1-function.solr-get-version-examples"> <h3 class="title">Examples</h3> <p class="para"> <div class="example" id="example-4706"> <p><strong>Example #1 <span class="function"><strong>solr_get_version()</strong></span> example</strong></p> <div class="example-contents"><p> Any text that describes the purpose of the example, or what goes on in the example should be here. </p></div> <div class="example-contents"> <div class="phpcode"><code><span style="color: #000000"> <span style="color: #0000BB"><?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">?></span> </span> </code></div> </div> <div class="example-contents"><p>The above example will output something similar to:</p></div> <div class="example-contents screen"> <div class="cdata"><pre> 0.9.6 </pre></div> </div> </div> </p> </div> <div class="refsect1 seealso" id="refsect1-function.solr-get-version-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"> <span class="function"><a href="solrutils.getsolrversion.html" class="function" rel="rdfs-seeAlso">SolrUtils::getSolrVersion()</a> - Returns the current version of the Solr extension</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="ref.solr.html">Solr Functions</a></div> <div class="next" style="text-align: right; float: right;"><a href="solr.examples.html">Examples</a></div> <div class="up"><a href="ref.solr.html">Solr Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>