开发者

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.)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜