私人领地

array_filter移除空数组

$arr = array(

  "0"=> "564645",

  "1"=>"",

  "2"=>65464,

  "3"=> ""

)

print_r(array_filter($arr)); 输出结果为

$arr = array(

  "0"=> "564645",

  "2"=>65464,

)

 

posted @ 2013-11-01 17:55  狂奔的蜗牛Snails  阅读(282)  评论(0编辑  收藏  举报