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
--
__
>In a message dated 2/24/2003 12:05:09 AM Pacific Standard Time,
>[EMAIL PROTECTED] writes:
>
>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
On Monday 24 February 2003 16:12, Kevin Waterson wrote:
> 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
3 matches
Mail list logo