<?php $all = [ '1', '2', '3', '4', ]; $toRemove = [ '3', '2', ]; $result = array_intersect($all, $toRemove); print_r($result);
You have javascript disabled. You will not be able to edit any code.