PHP array_count() functionThe count( ) function is an inbuilt function of PHP, and it is used to count the elements of an array or the properties of an object. This function was introduced in PHP 4.0. SyntaxParameters
ReturnThe count( ) function returns the number of elements in an array. Example 1Output: 5 Example 2Output: 3 Example 3Output: 7 Example 4Output: 4
Next TopicPHP Array Functions
|