日期:2014-05-17  浏览次数:20454 次

php 数组。
$d[]=array("淘宝","930852","http://","0");
$d[]=array("4399小游戏","698523","http://","0");
$d[]=array("天天有喜","689360","http://","0");
$d[]=array("火影忍者","462775","http://","0");
$d[]=array("中国好声音第二季","423689","http://","1");

如何去除二维数组 里$d[4][3] 为 0 的


------解决方案--------------------
var_dump(array_filter($d, "foo"));
function foo($v){
    return $v[3]!=='0';
}