Count all the values of an array:
The array_count_values() function counts all the values of an array.
| Parameter | Description |
|---|---|
| array | Required. Specifying the array to count values of |
| Return Value: | Returns an associative array, where the keys are the original array's values, and the values are the number of occurrences |
|---|---|
| PHP Version: | 4+ |
PHP Array Reference
Your message has been sent to W3Schools.