PHP function to get greatest result from given vars
Did a quick google search, but couldn't find anything useful, maybe wrong keywords, dunno.
Is there a function or anything in PHP that can return greatest开发者_如何学编程 value from provided ones?
Like - greatest($var1, $var2 [, $var3])
and it would return the largest/highest/greatest value?
Thanks in advance!
This is precisely what PHP's max function does.
(Isn't it great when that happens.)
精彩评论