Without doing a loop how do you get the max value of column 2 of a multidim array?
Tks
Chuck
How to do max ( $myarray [*][2] );
Moderator: General Moderators
- mydimension
- Moderator
- Posts: 531
- Joined: Tue Apr 23, 2002 6:00 pm
- Location: Lowell, MA USA
- Contact:
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
You could do a sort in reverse order (http://www.php.net/manual/en/function.rsort.php) and then grab the top element.
Mac
Mac