how to transfer the result from zrange withscore to array in PHP
<pre><code>redis&gt; ZADD myzset 1 "one"
(integer) 1
redis&gt; ZADD myzset 2 "two"
(integer) 1
redis&gt; ZADD myzset 3 "three"
(integer) 1
redis&gt; ZRANGE myzset 0 -1 WITHSCORES
1) "one"
2) "1"
3) "two"
4) "2"
5) "three"
6) "3"
</code></pre>

<p>How to transfer this result to key => array in PHP like this:</p>

<pre><code>array(
    "one" =&gt; 1,
    "two" =&gt; 2,
    "three" =&gt; 3
)
</code></pre>