<?php
$x=array(4,2,5,1,4,5,3,4);
Sy=array_count_values($x);
echo count($y);
EE
O 27
08
28
05
Answers
Answered by
0
array_count_values() function
The array count value function is used to count the number of values present in the array elements.
Syntax:
array_count_values(input_array)
Input_array: required, specifying the array to count values of
Example: Given question
<?php
$x=array(4,2,5,1,4,5,3,4);
Sy=array_count_values($x);
echo count($y);
?>
Output:
Array (
[4]=>3
[2]=>1
[5]=>2
[1]=>1
[3]=>1
)
To Learn More...
brainly.in/question/15181742
Similar questions
Math,
5 months ago
Math,
5 months ago
English,
10 months ago
English,
10 months ago
Computer Science,
1 year ago