PHP json_解码多个对象(顺序)

PHP json_解码多个对象(顺序),php,arrays,json,Php,Arrays,Json,我必须导入的所有订单中都有以下字符串: [ {"BestellungID":"1","KundeID":"1","Anrede":"Herr"}, {"BestellungID":"2","KundeID":"2","Anrede":"Herr"}, {"BestellungID":"3","KundeID":"3","Anrede":"Herr"} ] 如何解码所有元素的每个订单? 输出来自json编码的数组。您可以使用 谢谢别以为这么容易:) $array = json_decode($j

我必须导入的所有订单中都有以下字符串:

[
{"BestellungID":"1","KundeID":"1","Anrede":"Herr"},
{"BestellungID":"2","KundeID":"2","Anrede":"Herr"},
{"BestellungID":"3","KundeID":"3","Anrede":"Herr"}
]
如何解码所有元素的每个订单? 输出来自json编码的数组。

您可以使用


谢谢别以为这么容易:)
$array = json_decode($json, true);