The PHP Array Maximum Element
To get the maximum value of an array
in PHP, the max function is used.
See the example:
<?php
echo max([1, 3, 2]);
?>
Code execution result:
3
To get the maximum value of an array
in PHP, the max function is used.
See the example:
<?php
echo max([1, 3, 2]);
?>
Code execution result:
3