Filter out duplicate values in array using php

algjeux

New Member
Please help me to filter out only duplicate values in array using php.Consider,\[code\]$arr1 = array('php','jsp','asp','php','asp')\[/code\]Here I would prefer to print only\[code\]array('php'=>2, 'asp'=>2)\[/code\]tried it by\[code\]print_r(array_count_values($arr1));\[/code\]but, its getting count of each element.
 
Back
Top