array_count_values
reactphp/event-loop
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Counts the occurrences of each distinct value in an array
<?php array_count_values
(array
$array
): array