$phrases = array(
"New York", "New Jersey", "South Dakota",
"South Carolina", "Computer Repair Tech"
);
$string = "I live in New York, but used to live in New Jersey working as a " .
"computer repair tech.";
提取物$phrases
发现于$string
$new_string
输出应该是:New York New Jersey Computer Repair Tech