Find Smallest Number in Array using PHP

min function

<?php

$numbers = [10, 3, 17, 50, 15];
$minNumber = min($numbers);

echo $minNumber;

Leave a Comment

Cancel reply

Your email address will not be published.