开发者

PHP function to get greatest result from given vars

开发者 https://www.devze.com 2023-02-03 14:55 出处:网络
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?

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

精彩评论

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