Hai folks, is this a single dimensional array or two dimensional array $array[0]['name'] = 'John Doe'; $array[0]['email'] = 'john@example.com'; also can i use the count() function in above to fined the array element count? tx
It is a multidimensional array because $array[0] is holding an array. If you use count() on a multidimensional array then it will return the total count of total level elements, so if you run count() on this array then it will return 1.