array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'en', ), 'this' => array ( 0 => 'function.solr-get-version.php', 1 => 'solr_get_version', ), 'up' => array ( 0 => 'ref.solr.php', 1 => 'Solr Functions', ), 'prev' => array ( 0 => 'ref.solr.php', 1 => 'Solr Functions', ), 'next' => array ( 0 => 'solr.examples.php', 1 => 'Examples', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/solr/functions/solr-get-version.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL solr >= 0.9.1)
solr_get_version — Returns the current version of the Apache Solr extension
This function returns the current version of the extension as a string.
This function has no parameters.
It returns a string on success and false
on failure.
This function throws no errors or exceptions.
Example #1 solr_get_version() example
<?php
$solr_version = solr_get_version();
print $solr_version;
?>
The above example will output something similar to:
0.9.6