我正在尝试像这样使用array_diff。这是我的两个数组输出:
清单 1 输出
Array ([0] => 0022806 )
清单 2 输出
Array ([0] => 0022806 [1] => 0023199 )
PHP
$diff = array_diff($list_1, $list_2);
print "DIFF: " . count($diff) ."<br>";
print_r($diff);
输出是:
DIFF: 0
Array ( )
知道我做错了什么吗?为什么0023199
不退货?