PHP count items in a multi-dimensional array

前端 未结 9 1057
走了就别回头了
走了就别回头了 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:36

    If you want count the items unidimensional and bidimensional you can try:

    echo 'Size of unidimensional is: '.count($celda).'
    '; echo 'Size of bidimensional is: '.count($celda[0]).'
    ';

提交回复
热议问题