NU week2 part 3

Northeastern University ITC 2213

Write a PHP program that assigns 5 numbers to an array. It should then go through the values in the array to find and display the minimum value in the array.

 

The lowest value in the array is 12

<?php
/*Write a PHP program that assigns 5 numbers to an array. It should then go
through the values in the array to find and display the minimum value in the array.*/

/* create array with 5 numbers */
$numbers = array(25,50,12,453,48);

/* Use min() function to find lowest value and echo it*/
echo " <p> The lowest value in the array is ", min($numbers), "</p>";

?>