1. Single line

The count function is used to count the number of elements that an php array contains. The code below shows the implementation. is_array function. ... Numeric arrays use numbers for the array keys. ................
................