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