hi,
$array = array("amit", "hello", "amit", "world", "hello");
print_r(array_count_values($array));
out put
Array ( [amit] => 2 [hello] => 2 [world] => 1 )
i want to find the index of amit i.e
amit -> 0 and 2
hello -> 1 and 4
world -> 3
How to do this??