I've read some tutorials on here but none of them return what I need. I have two arrays.
$arrayA = array(1960,1961,1963,1962,1954,1953,1957,1956,1955);
$arrayB = array(1949,1960,1961,1963,1962,1954,1953,1957,1956,1955);
However, when I run array_diff, it returns an empty array.
$diff = array_diff($arrayA, $arrayB);
But I'd like it to return 1949. What's the error in my code?
edit: since switching the variables won't work, i did var_dump for the 3 arrays (A, B, and diff) and here's the pastebin http://pastebin.com/tn1dvCs3