Hi all,
I wish to fine the most occurringest value in an array. eg:
$arr = array('dog', 'cat', 'dog', 'zebra', 'cat', 'dog', 'dog', 'dog');
if I use array_count_values it gives "dog => 5"
I would like to get 'dog' and '5' into a $variable.
Kind regards
Kevin
--
______
(_____ \
_____) ) ____ ____ ____ ____
| ____/ / _ ) / _ | / ___) / _ )
| | ( (/ / ( ( | |( (___ ( (/ /
|_| \____) \_||_| \____) \____)
Kevin Waterson
Port Macquarie, Australia
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php