<code> $arr = array( 'id'=>'5', 'name'=>'user', 'pwd'=>'', 'email'=>'user@163.com', 'acl'=>'', 'status'=>'1', ); function ifs($arr){ foreach($arr as $k=>$v){ return empty($v) ? null : $where; } } echo '<pre class="brush:php;toolbar:false">
<code> $arr = array( 'id'=>'5', 'name'=>'user', 'pwd'=>'', 'email'=>'user@163.com', 'acl'=>'', 'status'=>'1', ); function ifs($arr){ foreach($arr as $k=>$v){ return empty($v) ? null : $where; } } echo '<pre class="brush:php;toolbar:false">
array_filter