如何在Codeigniter中通过查询检索的数组对数据进行分组并生成自定义JSON对象

时间:2018-06-15 19:36:35

标签: php arrays json

我有一个表和分组数据,如下所述。 enter image description here

我想生成一个类似下面的json,我需要遵循哪些程序。 enter image description here

0 个答案:

没有答案