Find Largest Number in Array using PHP

max function

<?php

$numbers = [10, 3, 17, 50, 15];
$maxNumber = max($numbers);

echo $maxNumber;

Leave a Comment

Cancel reply

Your email address will not be published.