Write a Program to Find Largest and Smallest Number in Array using Php Programming.
$arrNumber = array( 8, 9, 1, 6, 10, 0, 7, 3, 2, 4); $max = max($arrNumber); $min = min($arrNumber); echo "Largest Number in array is: ".$max; echo "Smallest Number in Array is: ".$min;
Output :
Largest Number in array is: 10
Smallest Number in Array is: 0
(Visited 441 times, 1 visits today)