Copyright © 2014 by tutorialspoint
Returns an array using the values of the input array as keys and their frequency in input as values.
Returns an assosiative array of values from input as keys and their count as value.
Try out following example:
$input_array = array("orange", "mango", "banan", "orange" );
This will produce following result:
Array ( [orange] => 2 [mango] => 1 [banana => 1 )