solr_get_version

(PECL solr >= 0.9.1)
Returns the current version of the Apache Solr extension
string solr_get_version ( void )

This function returns the current version of the extension as a string.

Returns:

It returns a string on success and FALSE on failure.

Exception:

This function throws no errors or exceptions.

Examples:
solr_get_version() example
1
2
3
4
5
6
7
<?php
 
$solr_version = solr_get_version();
 
print $solr_version;
 
?>

The above example will output something similar to:

0.9.6
See also:

SolrUtils::getSolrVersion() -

doc_php
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.