How to Find the Minimum/smallest/lowest Value of an Array in PHP?

Problem:

You want to find out the minimum value from an array.

Solution:

min() function can help you to the minimum value of an Array. See the following example-

[php]
<?php
$numbers = array(77, 455, 1000);
echo min($numbers);
?>
[/php]

[wpdm_file id=106]

Output:
77

Leave a Reply

Your email address will not be published. Required fields are marked *