Determine potential duplicates in string or array
<p>I am parsing RSS feeds with PHP into a MySQL database. Before inserting the new entry in the DB I would like to check (by comparing the titles of the items) if there is already a similar entry in the MySQL database available and flag them accordingly. Now I don't know how to determine that the candidates in the listed example are potential duplicates of the source. </p>

<p><strong>Example:</strong> </p>

<p>source:</p>

<ul>
<li>CES: Panasonic und Technisat neu in der Smart TV Alliance</li>
</ul>

<p>candidates:  </p>

<ul>
<li>Panasonic, IBM, Specific Media, ABOX42 und TechniSat ... - Area DVD</li>
<li>CES 2013: Panasonic, IBM, Specific Media, ABOX42 und TechniSat ...</li>
<li>Panasonic ABOX42 IBM Specific Media and TechniSat ExpandBuild Once ...</li>
<li>Panasonic, IBM, Specific Media, ABOX42 und TechniSat erweitern die ...</li>
<li>... </li>
</ul>

<p>Already tried array_intersect and levenshtein(), but the results are not very accurate. If have no idea any more.</p>

<p>Best, Andreas</p>
