I have two Arrays (but in reality they have much more content):
Array $erg
Array ( [0] => 4004708326000 [1] => 4004708392555 [2] => 4004708385106)
and Array $eannummer:
Array ( [0] => 4004708326000 [1] => 4004708392555 [2] => 4004708285234)
I tried to compare them with array_diff to get all the Numbers that are in $erg but not in $eannummer
print_r (array_diff($erg, $eannummer));
this only prints out
Array ()
but I can't manage to find out why...
Thanks in advance
babl@wks35:~$ cat 17.php It works for me: