Why is output of this code 5? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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()?

6th Jan 2019, 8:36 AM
Kawalpreet Juneja
Kawalpreet Juneja - avatar
0 Answers