array_count_values in php example

Program:

array_count_values.php:

<?php
$array=array(5,”naveen”,11,“indian”,”naveen”,5,”naveen”,”naveen”);
print_r(array_count_values($array));
?>

 Output:

 

Thanks for reading this post…………..!!!

One comment

Leave a Reply