note 70420 added to function.memcache-get
| From: | tszming at gmail dot com | Date: | Mon, 16 Oct 2006 04:14:35 +0000 |
| Subject: | note 70420 added to function.memcache-get | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-118562@lists.php.net to get a copy of this message | ||
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");
----
Server IP: 202.181.244.117
Probable Submitter: 125.215.205.194
----
Manual Page -- http://www.php.net/manual/en/function.memcache-get.php
Edit -- https://master.php.net/note/edit/70420
Del: integrated -- https://master.php.net/note/delete/70420/integrated
Del: useless -- https://master.php.net/note/delete/70420/useless
Del: bad code -- https://master.php.net/note/delete/70420/bad+code
Del: spam -- https://master.php.net/note/delete/70420/spam
Del: non-english -- https://master.php.net/note/delete/70420/non-english
Del: in docs -- https://master.php.net/note/delete/70420/in+docs
Del: other reasons-- https://master.php.net/note/delete/70420
Reject -- https://master.php.net/note/reject/70420
Search -- https://master.php.net/manage/user-notes.php