用回調函數過濾數組中的元素:. <?php function test_odd($var) { return($var & 1); } $a1=array("a","b",2,3,4); print_r(array_filter($a1,"test_odd"));
確定! 回上一頁