note 32173 rejected from function.max by spic
| From: | spic@php.net | Date: | Mon, 19 May 2003 15:36:57 +0000 |
| Subject: | note 32173 rejected from function.max by spic | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-48596@lists.php.net to get a copy of this message | ||
Note Submitter: jonas@trisinus.de
----
hi,
if anyone knows how to use max(); with multidimensional arrays please respond.
trying to get the max value from the first dimension of an array i encounter the following problem:
array[0][1] = 1;
array[0][2] = 2;
array[1][1] = 1;
array[1][2] = 2;
tmpArray = max(array[0]);
/* this results in an error telling me that the parameter count is wrong. in my opinion thats due to
the fact that php interprets "array[0]" as an integer and wants me to add more parameters
to compare.
*/
regards jonas