Patrick Patrick - 11 months ago 102
JSON Question

PHP json_decode multiple objects (orders)

I have the following string from all orders I have to import:


How can I decode every order with all elements?
The output is from an array which is json-encoded.

Answer Source

You can use json_decode

$array = json_decode($json, true);