Ok i am trying to create a simple program that will allow me to use an array with 8 numbers, the output form should show the numbers in their original order that the user inputs them, in numerical order, Highest number, lowest number and then the average number. If anyone could help me it would be much appreciated. here's waht i have so far.
<?php
if (isset($_POST['numbers']))
//if (is_numeric($_POST['numbers']))
//if (!empty($_POST['numbers']))
{
$Numbers = $_POST['numbers'];
$big = max($Numbers);
$small = min($Numbers);
$average = array_sum($Numbers) / count($Numbers);
print "Original Sequence:<br>";
$sorted = sort($Numbers);
print "Sorted Numbers: $sorted";
echo implode(" ",$Numbers);
print "<br>Largest Number: $big<br>";
print "Smallest Number: $small<br>";
print "Average Number: $average<br>";}
else {
print "<font color='red'>Invalid Input Grades must be Numeric</font>";}
?>