array_filter、array_walk、array_map的区别时间:2022-01-29 17:07:57 <?php $arr=array( 1,2,3,4,5,6 ); function filter($var){ if($var%2==0) return true; } $data=array_filter($arr,"filter"); $data=array(2,4,6); ?> <?php $arr1=array('linux','Php','JAVA'); array_map('strtoupper',$arr1); ?>