$arr = array( '0' => 'a', '1' => '', '2' => 'b', ); $arr = array_filter($arr, create_function('$v', 'return !empty($v);')); print_r( $arr );
转载于:https://www.cnblogs.com/lishu/archive/2012/10/28/2743727.html
$arr = array( '0' => 'a', '1' => '', '2' => 'b', ); $arr = array_filter($arr, create_function('$v', 'return !empty($v);')); print_r( $arr );
转载于:https://www.cnblogs.com/lishu/archive/2012/10/28/2743727.html