$array1 = array(0,1,3,0);
$array2 = array(2,0,3,2);
$array3 = array(0,4,5,1);
echo min($array1) . "\n";
echo min($array2) . "\n";
echo min($array3) . "\n";
这还给我:
0
0
0
但我想收到:
1
2
1
如何在函数 MIN 中跳过 0?
$array1 = array(0,1,3,0);
$array2 = array(2,0,3,2);
$array3 = array(0,4,5,1);
echo min($array1) . "\n";
echo min($array2) . "\n";
echo min($array3) . "\n";
这还给我:
0
0
0
但我想收到:
1
2
1
如何在函数 MIN 中跳过 0?