note 92015 added to function.max

From: Date: Sun, 05 Jul 2009 10:01:33 +0000
Subject: note 92015 added to function.max
Groups: php.notes 
Request: Send a blank email to php-notes+get-157935@lists.php.net to get a copy of this message
re: doublemax: <? function doublemax($arr) { $val = max($arr); $key = array_search($val,$arr); return array($key=>$val); } ?> should be a lot faster than joan dot codina or michaelangel0's functions, as mine uses inbuilt search rather than home brewed. ---- Server IP: 92.48.74.199 Probable Submitter: 87.194.252.116 ---- Manual Page -- http://www.php.net/manual/en/function.max.php Edit -- https://master.php.net/note/edit/92015 Del: integrated -- https://master.php.net/note/delete/92015/integrated Del: useless -- https://master.php.net/note/delete/92015/useless Del: bad code -- https://master.php.net/note/delete/92015/bad+code Del: spam -- https://master.php.net/note/delete/92015/spam Del: non-english -- https://master.php.net/note/delete/92015/non-english Del: in docs -- https://master.php.net/note/delete/92015/in+docs Del: other reasons-- https://master.php.net/note/delete/92015 Reject -- https://master.php.net/note/reject/92015 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#157935) next »