Files
doc-fr/reference/memcache/functions/memcache-getversion.xml
T
Yannick Torres e86fc45b2a sync with EN
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@171707 c90b9560-bf6c-de11-be94-00142212c4b1
2004-10-31 12:19:48 +00:00

72 lines
1.7 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<!-- EN-Revision: 1.1 Maintainer: yannick Status: ready -->
<refentry id="function.Memcache-getVersion">
<refnamediv>
<refname>Memcache::getVersion</refname>
<refpurpose>Retourne le numéro de version du serveur</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>string</type><methodname>Memcache::getVersion</methodname>
<void/>
</methodsynopsis>
<para>
<function>Memcache::getVersion</function> retourne une chaîne avec
le numéro de version du serveur.
</para>
<para>
Vous pouvez aussi utiliser la fonction <function>memcache_get_version</function>.
Voyez l'exemple ci-dessous.
</para>
<example>
<title>Exemple avec <function>Memcache::getVersion</function></title>
<programlisting role="php">
<![CDATA[
<?php
/* API procédurale */
$memcache_obj = memcache_connect('memcache_host', 11211);
echo memcache_get_version($memcache_obj);
/* API OOP */
$memcache_obj = new Memcache;
echo $memcache_obj->getVersion();
?>
]]>
</programlisting>
</example>
<para>
<function>Memcache::getVersion</function> retourne &false; en cas d'erreur.
</para>
<para>
Voir aussi
<function>Memcache::getStats</function>.
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->