- PHP 手册
- 函数参考
- 搜索引擎扩展
- mnoGoSearch
- mnoGoSearch 函数
udm_api_version
(PHP 4 >= 4.0.5, PHP 5 < 5.1.0, PECL mnogosearch >= 1.0.0)
udm_api_version — Get mnoGoSearch API version
说明
udm_api_version ( void ) : intGets the mnoGoSearch API version.
This function allows the user to identify which API functions are available, e.g. udm_get_doc_count() function is only available in mnoGoSearch 3.1.11 or later.
返回值
udm_api_version() returns the mnoGoSearch API version number. E.g. if mnoGoSearch 3.1.10 API is used, this function will return 30110.
范例
Example #1 udm_api_version() example
<?php
if (udm_api_version() >= 30111) {
echo "Total number of URLs in database: " . udm_get_doc_count($udm) . "<br />\n";
}
?>
User Contributed Notes
There are no user contributed notes for this page.官方地址:https://www.php.net/manual/en/function.udm-api-version.php