<html>
<body>
$a=array("A","Cat","Dog","A","Dog");
print_r(array_count_values($a));
</body>
<!-- Mirrored from www.w3schools.com/php/phptryit.asp?filename=tryphp_func_array_count_values by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 21 Dec 2022 17:22:33 GMT -->
</html>