note 76424 deleted from function.max by danbrown

From: Date: Tue, 22 Mar 2011 14:00:49 +0000
Subject: note 76424 deleted from function.max by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-178087@lists.php.net to get a copy of this message
Note Submitter: joan dot codina at upf dot edu ---- This is highly ineficient, but can be a bit better <? function doublemax($mylist){ $maxvalue=max($mylist); while(list($key,$value)=each($mylist)){ if($value==$maxvalue) return array("key"=>$key,"value"=>$value); } } ?>

« previous php.notes (#178087) next »