How to assign a variable, all elements of the array?

{"resources":[
 {"id":40386,"name":"AUDI 80 (B4), CHERY AMULET, VW GOLF III, PASSAT (3A) GDB1044",
"article":"GDB1044",
"brand":{"id":3,"name":"TRW"},
"offers":[
{"price":1650.82,
"quantity":9,
"available_more":false,
"reliability":95,
"multiplication_factor":1,
"average_period":2,
"assured_period":3,
"delivery_type":1,
"warehouse":{"id":34058,"name":"WPG","type":3}
},
{"price":1714.54,
"quantity":9,
"available_more":false,
"reliability":96,
"multiplication_factor":1,
"average_period":2,
"assured_period":3,
"delivery_type":1,
"warehouse":{"id":1150450,"name":"KRO","type":3}
},
{"price":1716.9,
"quantity":6,
"available_more":false,
"reliability":33,
"multiplication_factor":1,
"average_period":2,
"assured_period":3,
"delivery_type":1,
 "warehouse":{"id":14561151,"name":"QAZ","type":3}},
July 8th 19 at 12:00
3 answers
July 8th 19 at 12:02
Solution
As I understand it is a necessary function, the type of extract ( php.net/manual/en/function.extract.php ). But I would not recommend, not very the right way. Better to go in the direction $arr = json_decode ($json_text, true);, as advised above.
July 8th 19 at 12:04
July 8th 19 at 12:06
json_decode and then you can so

Find more questions by tags PHP