Exploding String And remove multiple entry
<p>Thing is, I want to make a script that first register a string from The POST Data from a form and then check whether there is a multiple entry. If any, that entry will be removed and fresh list of unique entry will be proceed. </p>

<ul>
<li><p>The Entries are URL. A list of URL and there might be a multiple entry. </p>

<pre><code>$sites=$_POST['sitelist'];

$sites=explode("\n", $sites);
</code></pre></li>
</ul>

<p>The <code>$_POST['sitelist']</code> came from a Textarea from a submitted from. Now how can i separate all those URL and Check whether a URL came again and then Remove it and Proceed with a fresh list of URL? </p>
