$arr1
= [
'a'
,
'b'
'c'
'd'
'e'
];
$arr
=
array_count_values
(
);
echo
'<pre>'
;
print_r(
result:
Array
[a] => 3
[b] => 1
[c] => 1
[d] => 1
[e] => 2
)