PHP

How many elements are in an array PHP?1 min read

count is a function of arrays in PHP that returns the number of elements in a given array.

The count method of an array can be returned like so.




Output:

 

 

Leave a Comment