I have the following array called $submissions:
Array ( [0] => 342 [1] => 343 [2] => 344 [3] => 345 )
I then have a string:
$in_both = 342,344;
I then am using this code to remove any number thats in $in_both from $submissions:
if(($key = array_search($in_both, $submissions)) !== false) {
unset($submissions[$key]);
}
The problem is this is only working for the first number.
How can I have all the numbers removed from the array that are in the variable $in_both?
Thank you