$arr1=array(23,43,54);
$arr2=array(34,23,3456,43,11,54);
I want to get elements of $arr2
that's not in $arr1
$arr1=array(23,43,54);
$arr2=array(34,23,3456,43,11,54);
I want to get elements of $arr2
that's not in $arr1
array_diff()
is your man. http://php.net/manual/en/function.array-diff.php