PHP数组合并去重统计

 
    $a = array("1001","1002");
    $b = array("1002","1003","1004");
    $c = array("1003","1004","1005");
    $d = count(array_flip($a) + array_flip($b) + array_flip($c));