note 32173 added to function.max

From: Date: Mon, 19 May 2003 15:12:47 +0000
Subject: note 32173 added to function.max
Groups: php.notes 
Request: Send a blank email to php-notes+get-48595@lists.php.net to get a copy of this message
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 ---- Manual Page -- http://www.php.net/manual/en/function.max.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32173 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32173&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32173&report=yes

« previous php.notes (#48595) next »