+ 1
Why is output of this code 5?
What is output of this code? $x = array(4, 2, 5, 1, 4, 5, 3, 4); $y = array_count_values($x); echo $count($y); Also, what's difference between count() and array_count_values()?
0 Answers
What is output of this code? $x = array(4, 2, 5, 1, 4, 5, 3, 4); $y = array_count_values($x); echo $count($y); Also, what's difference between count() and array_count_values()?