Computer Science, asked by sirazsunny1431, 10 months ago

<?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 stefangonzalez246
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