Extract predefined phrases in array from string in PHP
<pre><code>$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.";
</code></pre>

<p>Extract <code>$phrases</code> found in <code>$string</code></p>

<p><code>$new_string</code> output should be: <code>New York New Jersey Computer Repair Tech</code></p>
