note 70420 deleted from function.memcache-get by tony2001
| From: | tony2001@php.net | Date: | Thu, 30 Nov 2006 23:07:52 +0000 |
| Subject: | note 70420 deleted from function.memcache-get by tony2001 | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-120204@lists.php.net to get a copy of this message | ||
Note Submitter: tszming at gmail dot com
----
pls aware of the get() function will change the content of your variable:
e.g.
$key = "this is a test";
$memcache->set($key, 1);
echo $memcache->get($key); // print out "1", as expected
echo $key; // print out "this_is_a_test"
i think you would like to use as the following:
$memcache->set("$key", 1);
echo $memcache->get("$key");