← All built-ins / max()
max()
max(...$numbers): mixed
Parameters
| Name | Type | Description |
|---|---|---|
| $... | mixed | numbers or a single array |
Return value
The largest value.
Example
echo max(3, 7, 5), " "; echo max([2, 9, 4]), " ";
7 9
| Name | Type | Description |
|---|---|---|
| $... | mixed | numbers or a single array |
The largest value.
echo max(3, 7, 5), " "; echo max([2, 9, 4]), " ";
7 9