Memcache::getVersion

Return version of the server

&reftitle.description; ``string``false```Memcache::getVersion`

`Memcache::getVersion` returns a string with server's version number. Also you can use `memcache_get_version` function.

&reftitle.parameters; &no.function.parameters;
&reftitle.returnvalues;

Returns a string of server version number&return.falseforfailure;.

&reftitle.examples;

### `Memcache::getVersion` example

    <?php

    /* OO API */
    $memcache = new Memcache;
    $memcache->connect('memcache_host', 11211);
    echo $memcache->getVersion();

    /* procedural API */
    $memcache = memcache_connect('memcache_host', 11211);
    echo memcache_get_version($memcache);

    ?>

&reftitle.seealso;

- `Memcache::getExtendedStats`
- `Memcache::getStats`