Find maximum value in associative array

aaghoasten

New Member
I have a associative array:\[code\]$users[0] = array('name' => 'Jim', 'depth' => '1', 'bk_id' => '9'); $users[1] = array('name' => 'Jill', 'depth' => '3', 'bk_id' => '10'); $users[2] = array('name' => 'Jack', 'depth' => '7', 'bk_id' => '17'); \[/code\]I would like to know a way of finding the array index with the maximum or greatest depth value?Any suggestion is most appreciated.
 
Top