You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
<?php
|
|
function min_values_not_zero(Array $values)
|
|
{
|
|
return min(array_diff(array_map('intval', $values), array(0)));
|
|
}
|
|
print_r(min_values_not_zero(array(-1,0,1,12,-100,1))."\n");
|
|
?>
|