×
Home About Us Products Services News Free Scripts Contact
news php scripts and software

PHP example - How to count all the values of an array using the array_count_values PHP function?


PHP - How to count all the values of an array using the array_count_values PHP function?

<?php

$arr=array("netart","france","paris","netart","paris");
array_count_values($arr); // will return array("netart"=>2,"paris"=>2,"france"=>1)


?>

Category: PHP

 
<< Go back