Need help counting array value w/o standard functions

As title says, I need to fnd the value of this array without using standard php functions.

[php]

<?php $a = array(23,245,1,2,12,-10,46,6,66,9999,-55,348,56,6,66,983); $max = $a[0]; $min = $a[0]; for ($i = 1; $i $max) { $max = $a[$i]; } else if ($a[$i] < $min) { $min = $a[$i]; } } ?>

[/php]

Can please someone help me, it’s for a school assignment.

Sponsor our Newsletter | Privacy Policy | Terms of Service