0
I have two arrays
as I would do in PHP
to return in a third array
only numbers that are not in the first and second array
.
Example:
If I have the number 1 and 2 in the first array
my third array
should receive only 3 and 4
$primeiro_array = ["1", "2", "3", "4"];
$segundo_array = ["1", "2"];
That third array
will only receive numbers that are not repeated between the
first and second array
$terceiro_array = ["3", "4"];
There is a way to do this with PHP
?
"only numbers that are not in the first and second array" this got quite confusing.
– Woss