<html>
<body>
$a=array("A","Cat","Dog","A","Dog");
print_r(array_count_values($a));
</body>
<!-- Mirrored from www.w3schools.com/php7/phptryit.asp?filename=tryphp_func_array_count_values by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 13:40:30 GMT -->
</html>