- var_dump: documentation ( source)
- array_filter: documentation ( source)
- in_array: documentation ( source)
<?php
$remove = array(
"Remove Me", "Delete this",
);
$haystack = array(
"Data",
"Ddddata",
"Remove Me",
"Delete this",
"Foo",
"Bar",
"Remove this",
);
var_dump(array_filter($haystack, function($e) use ($remove) { return !in_array($e, $remove); }));