$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
.