Display the drop-down list

array_count_values()

« array_combine | array_diff »
<?php
$array 
array_count_values (
    
  // array $array
);
?>
Result
$array = [
  
=> 2,
  
'hello' => 2,
  
'world' => 1,
]
Examples
#1 array_count_values  ([=> 1=> "hello"=> 1=> "world"=> "hello"])
See also
array_unique, array_values, count, count_chars