Home>Article>Backend Development> What does php max mean?

What does php max mean?

藏色散人
藏色散人 Original
2019-05-18 13:44:55 22091browse

max is a function used to return the maximum value in an array. Its syntax is "max(array_values); or max(value1,value2,...);". The parameter "array_values" represents a Array of values.

What does php max mean?

Recommended: "PHP Video Tutorial"

php max() function means to return a The maximum value in an array, or the maximum value among several specified values.

Syntax

max(array_values); or max(value1,value2,...);

Parameters

array_values Required. Specifies an array containing values.

value1,value2,... Required. Specifies the values to be compared (at least two values).

The above is the detailed content of What does php max mean?. For more information, please follow other related articles on the PHP Chinese website!

php
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How to implement php rpc? Next article:How to implement php rpc?