GoLang udm_api_version

request it (187)
GoLang replacement for PHP's udm_api_version [edit | history]

Do you know a GoLang replacement for PHP's udm_api_version? Write it!

PHP udm_api_version

PHP original manual for udm_api_version [ show | php.net ]


(PHP 4 >= 4.0.5, PHP 5 < 5.1.0, PECL mnogosearch >= 1.0.0)

udm_api_versionGet mnoGoSearch API version


int udm_api_version ( void )

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

Return Values

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

if (udm_api_version() >= 30111) {
"Total number of URLs in database: " udm_get_doc_count($udm) . "<br />\n";