I want each of common value's key from single array only.
$array1=array("Orange","Apple","Banana","Orange","Apple");
expecting output : orange=>0, Orange=>3
I have used $counts = array_count_values($array1);
but it is just counting.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire