note 94430 added to function.max
| From: | loplyg at gmail dot com | Date: | Wed, 04 Nov 2009 15:08:30 +0000 |
| Subject: | note 94430 added to function.max | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-162398@lists.php.net to get a copy of this message | ||
Re johnmott59 at hotmail dot com
Since max() can be a bit slow, you may be better doing the following if you want to find the max out
of several 1-dimensional arrays:
$d1 = array(1,5,6,9);
$d2 = array(10,12,15,19);
$d3 = array(1,2);
$myMax = max( array_merge($d1, $d2, $d3) );
----
Server IP: 87.124.86.46
Probable Submitter: 83.148.128.178 (proxied: 83.148.128.178)
----
Manual Page -- http://www.php.net/manual/en/function.max.php
Edit -- https://master.php.net/note/edit/94430
Del: integrated -- https://master.php.net/note/delete/94430/integrated
Del: useless -- https://master.php.net/note/delete/94430/useless
Del: bad code -- https://master.php.net/note/delete/94430/bad+code
Del: spam -- https://master.php.net/note/delete/94430/spam
Del: non-english -- https://master.php.net/note/delete/94430/non-english
Del: in docs -- https://master.php.net/note/delete/94430/in+docs
Del: other reasons-- https://master.php.net/note/delete/94430
Reject -- https://master.php.net/note/reject/94430
Search -- https://master.php.net/manage/user-notes.php