Memcached
PHP Manual

Memcached::getVersion

(PECL memcached >= 0.1.5)

Memcached::getVersionGet server pool version info

说明

public array Memcached::getVersion ( void )

Memcached::getVersion() returns an array containing the version info for all available memcache servers.

参数

此函数没有参数。

返回值

Array of server versions, one entry per server.

范例

Example #1 Memcached::getVersion() example

<?php
$m 
= new Memcached();
$m->addServer('localhost'11211);

print_r($m->getVersion());
?>

以上例程的输出类似于:

Array
(
    [localhost:11211] => 1.2.6
)


Memcached
PHP Manual