<?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); });
- Output for 5.4.0 - 5.4.22
- Parse error: syntax error, unexpected ';' in /in/8MtlM on line 17
Process exited with code 255. - Output for 5.3.0 - 5.3.27
- Parse error: syntax error, unexpected '[' in /in/8MtlM on line 3
Process exited with code 255.
preferences:
189.92 ms | 1395 KiB | 58 Q