Finding the Minimum Value in an Array in PHP


Identify the lowest value in an array with min().

Source Code

$values = [2, 3, 1, 6, 7];
echo min($values); // Outputs: 1
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments