array structure of database results

前端 未结 2 1385
终归单人心
终归单人心 2021-01-26 15:17

This might be quite a trivial question, but which of these methods is best practice for structuring an array for return db results? say a list of blog posts... Sorting and group

2条回答
  •  清歌不尽
    2021-01-26 16:02

    No use making a data structure that doesn't look right when you output it. The second data set it also way more usable which is why it is used in bigger projects like Wordpress.

提交回复
热议问题