I have a PHP array of about 20,000 names, I need to filter through it and remove any name that has the word job, freelance, or project
job
freelance
project
This should be what you want:
if (!preg_match('/(freelance|job|project)/i', $name)) { $cleanArray[] = $name; }