returning the largest num in an array

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

returning the largest num in an array

Post by Luke »

I could have sworn I saw a built-in php function that returns the largest number in a given array. Is there one such function or do I need to just make one?
Charles256
DevNet Resident
Posts: 1375
Joined: Fri Sep 16, 2005 9:06 pm

Post by Charles256 »

man...come on... http://www.php.net/max :-D
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

sorry I was looking for a function that started with array_ :oops: :oops:

Thank you very much
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Charles256 wrote:man...come on... http://www.php.net/max :-D
Yet again, learning something new from this community. Thanks Charles256. Never knew it existed.
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

We had a topic on this not so long ago. I can't believe you guys forgot it so fast.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Oren wrote:We had a topic on this not so long ago. I can't believe you guys forgot it so fast.
I never even read the topic. Had I, I wouldn't have appeared so pleased to learn a new function. :oops:
User avatar
Oren
DevNet Resident
Posts: 1640
Joined: Fri Apr 07, 2006 5:13 am
Location: Israel

Post by Oren »

Everah wrote:I never even read the topic. Had I, I wouldn't have appeared so pleased to learn a new function. :oops:
Yes, I guess you are right :wink:
Post Reply