php8.5
Home/ Manual/ solr / functions/ solr_get_version

solr_get_version

PHP function Edit on GitHub ✎

(PECL solr >= 0.9.1)

Returns the current version of the Apache Solr extension

Description

solr_get_version(): string

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

Parameters Parameters

Return Values

It returns a string on success and false on failure.

Errors/Exceptions

This function throws no errors or exceptions.

Examples

solr_get_version() example

php
<?php

$solr_version = solr_get_version();

print $solr_version;

?>

The above example will output something similar to:

output
0.9.6

See Also

Source: reference/solr/functions/solr-get-version.xml · from the official PHP manual (php/doc-en)