D
D
Dmitry2018-07-11 08:43:18
PHP
Dmitry, 2018-07-11 08:43:18

How to get key value in Redis?

Hello!
There is an array:

$array = [
    "key1" => ["value1"=>1, "value2"=>2, "value3"=>3, "value4"=>4],
    "key2" => ["value6"=>6, "value7"=>7, "value8"=>8, "value9"=>9],
];

Writing in redis:
$redis->set('keys',$array);
So how can you get, find the desired value, for example - value1?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
romaaa32, 2019-08-15
@romaaa32

How can you store an array?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question