solr_get_version

(PECL solr >= 0.9.1)

solr_get_versionReturns 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.

參數

此函式沒有參數。

回傳值

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;

?>

上例的輸出類似於:

0.9.6

參見

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top