I have an array
$array = array("dresses","suits");
When I try to make BITOP using phpredis
$value = implode(",",$array);
$redis->bitOp('AND','color',$value);
echo $redis->bitcount('color');
I get 0. Also tried
$value = "'".implode("','",$array)."'";
with no result. But when I make
$redis->bitOp('AND','color','dresses','suits');
echo $redis->bitcount('color');
everything is fine. It gives 30 to me
How to solve this?