Source Code:
(back to article)
<?php $numbers = [1, 5, 3, 8, 2]; // Find the highest value in the array using the max() function $result = max($numbers); // Output the result echo $result; ?>
Result:
Report an issue