Php operation redis when operating an ordered set, withscores plus true results in a null value

        $redis->flushAll();
        //set 

        //1.
        $redis->zAdd("stud",11,"zhangsan",22,"zhangsan1",33,"zhangsan3");
        $redis->zAdd("stud",66,"zhangsan2",55,"zhangsan6",44,"zhangsan5");


        //2.

        //3.
        var_dump($redis->zRange("stud",0,6,false));       //value
//        var_dump($redis->zRangeByScore("stud",0,44,["limit" => array(1, 2),"withscores" => false]));//score

there is no problem with the above code. When var_dump ($redis- > zRange ("stud",0,6,true)); withscores changed to true) includes the following code execution, the browser directly does not have any output and there is no null or false

.
Jul.26,2021

//phprediszRevRange
$key='testkey';
$obj=new \Redis();
$obj->connect('127.0.0.1',6379);
$obj->auth('');
$obj->select(0);
$obj->zAdd($key,1,12);
$obj->zAdd($key,2,53);
$redisList=$obj->zRevRange($key,0,19,true);
var_dump($redisList);//
$arr=[];
var_dump($redisList);//,$redisList===$arr,$arr,$redisList
Menu