php檢查陣列中大於0的值
Temperature: 0 °C
假設有一個陣列$a
$a = array(0,2,0,0,0,9,8);
取得大於0的數值有幾個
$temp_a = array_filter($a, function($value){
return $value > 0;
});
以上紀錄~
#php #array #大於0 #取得大於0數字
HOME All Categories php檢查陣列中大於...
Temperature: 0 °C
假設有一個陣列$a
$a = array(0,2,0,0,0,9,8);
$temp_a = array_filter($a, function($value){
return $value > 0;
});
Mark Chang
離不開電腦的宅男
Leave some footprints to prove that you visited me
Author's other related stories
Please select an option
error
Copy complete
Hi, thank you for your participation, but you cannot vote repeatedly~
Wrong format