Page 1 of 1

returning the largest num in an array

Posted: Thu Jun 15, 2006 11:03 am
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?

Posted: Thu Jun 15, 2006 11:04 am
by Charles256
man...come on... http://www.php.net/max :-D

Posted: Thu Jun 15, 2006 11:09 am
by Luke
sorry I was looking for a function that started with array_ :oops: :oops:

Thank you very much

Posted: Thu Jun 15, 2006 11:30 am
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.

Posted: Thu Jun 15, 2006 11:34 am
by Oren
We had a topic on this not so long ago. I can't believe you guys forgot it so fast.

Posted: Thu Jun 15, 2006 11:48 am
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:

Posted: Thu Jun 15, 2006 3:02 pm
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: