PHP count items in a multi-dimensional array

前端 未结 9 1102
走了就别回头了
走了就别回头了 2021-01-11 19:54

As you can see from the following array, there are three elements that appear on Nov 18, and another two elements that appear on Nov 22. Can someone tell me how I can retri

9条回答
  •  [愿得一人]
    2021-01-11 20:16

    You can use:

    count($array, COUNT_RECURSIVE);
    

    Count number of leaves in nested array tree

提交回复
热议问题