<?php
function min_number($array){
$min_number = $array[0];
$length = count($array);
for($i = 0; $i < $length; $i++){
if($min_number > $array[$i]){
$min_number = $array[$i];
}
}
return $min_number;
}
function min_number($array){
$min_number = $array[0];
$length = count($array);
for($i = 0; $i < $length; $i++){
if($min_number > $array[$i]){
$min_number = $array[$i];
}
}
return $min_number;
}
No comments:
Post a Comment