array_count_values

PHP 4, PHP 5, PHP 7, PHP 8
array_count_values - Counts all the values of an array

Example #1 array_count_values example

Result: Array ( [1] => 2 [hello] => 2 [world] => 1 )
PHP Version:


Example #2 of array_count_values

PHP Version:


Function array_count_values:

Arrays Functions

Most used PHP functions