$a1=array("a"=>"red","b"=>"green","c"=>"blue");
$a2=array("a"=>"blue","b"=>"black","e"=>"blue");
$a1=array("a"=>"4","b"=>"5","c"=>"6");
$a2=array("a"=>"5","b"=>"7","e"=>"9");
$test=array_udiff($a1, $a2, function($a, $b){
var_dump($a);
var_dump($b);
var_dump($a>$b);
if($a>$b){
return 1;
}else{
return 0;
}
});
var_dump($test);
无论是大于还是小于还是等于都没结果
w3c的示例看的脑瓜子疼
阿晨1998
人到中年有点甜
扬帆大鱼