I'm trying to find the difference in 2 arrays.
$inven_old = array(1,2,3,4);
$inven_new = array(1,2,3,4,5);
$result = array_diff($inven_old, $inven_new);
print_r($result);
Why is the outcome nothing?
Shouldn't it be "5" ?
If not, how can I do what I'm trying to do?
var_dump($result)to see it's structureReturns an array containing all the entries from array1 that are not present in any of the other arrays.