FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » integer and string what's the difference ?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
integer and string what's the difference ? [message #175860] Tue, 01 November 2011 13:19 Go to previous message
gaoqiang is currently offline  gaoqiang
Messages: 1
Registered: November 2011
Karma:
Junior Member
1 <?php
2 require_once("config.php");
3 $now=time();
4 $value="abcd";
5 $key="1234";
6
7 $mem_server="localhost";
8 $mem_port=11211;
9 $memc=new Memcached;
10 $memc->addServer($mem_server,$mem_port);
11 $memc->set($key,$value);
12 $keys=array();
13 array_push($keys, 1234);
14 $rsts=$memc->getMulti($keys);
15 var_dump($rsts);
16 ?>

line 13: when using array_push($keys,"1234"),
it works fine. but not with 1234.

when using $memc->get,not getMulti, 1234 and
"1234" are the same.

I think this is a bug. any idea ?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: missing variable
Next Topic: Stats comp.lang.php (last 7 days)
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Oct 06 04:22:50 GMT 2024

Total time taken to generate the page: 0.09476 seconds