array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'memcached.getresultmessage.php', 1 => 'Memcached::getResultMessage', ), 'up' => array ( 0 => 'class.memcached.php', 1 => 'Memcached', ), 'prev' => array ( 0 => 'memcached.getresultcode.php', 1 => 'Memcached::getResultCode', ), 'next' => array ( 0 => 'memcached.getserverbykey.php', 1 => 'Memcached::getServerByKey', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/memcached/memcached/getresultmessage.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL memcached >= 1.0.0)
Memcached::getResultMessage — Return the message describing the result of the last operation
Memcached::getResultMessage() returns a string that describes the result code of the last executed Memcached method.
Diese Funktion besitzt keine Parameter.
Message describing the result of the last Memcached operation.
Beispiel #1 Memcached::getResultMessage() example
<?php
$m = new Memcached();
$m->addServer('localhost', 11211);
$m->add('foo', 'bar'); // first time should succeed
$m->add('foo', 'bar');
echo $m->getResultMessage(),"\n";
?>
Das oben gezeigte Beispiel erzeugt folgende Ausgabe:
NOT STORED