array_filter移除空数组
$arr = array(
"0"=> "564645",
"1"=>"",
"2"=>65464,
"3"=> ""
)
print_r(array_filter($arr)); 输出结果为
$arr = array(
"0"=> "564645",
"2"=>65464,
)
$arr = array(
"0"=> "564645",
"1"=>"",
"2"=>65464,
"3"=> ""
)
print_r(array_filter($arr)); 输出结果为
$arr = array(
"0"=> "564645",
"2"=>65464,
)