L
L
lzy2019-01-16 23:06:54
Yii
lzy, 2019-01-16 23:06:54

How to parse JSON array?

Hello, the site generates an array of data in JSON format, for example, at the link mysite.ru/requests.
Now, how do I read the data by reference and put it into the database?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
krypt3r, 2019-01-17
@krypt3r

curl + \yii\helpers\Json::decode()

A
Andrey, 2019-01-17
@VladimirAndreev

file_get_contents
json_decode

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question