note 77669 deleted from function.max by danbrown
| From: | danbrown@php.net | Date: | Tue, 22 Mar 2011 14:00:53 +0000 |
| Subject: | note 77669 deleted from function.max by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-178088@lists.php.net to get a copy of this message | ||
Note Submitter: sta
----
Or to take multiple maximum values into consideration:
function doublemax($mylist){
$maxvalue=max($mylist);
$max_keys = array();
while(list($key,$value)=each($mylist)){
if($value==$maxvalue)
array_push($max_keys,$key);
}
return $max_keys;
}