How do I remove duplicate numbers?
<p><strong>HTML</strong></p>

<pre><code>&lt;form method="post"&gt;
    &lt;input type="text" name="values" value="1,2,1,3,4,2,2,5" /&gt;
    &lt;button type="submit"&gt;Submit&lt;/button&gt;
&lt;/form&gt;
</code></pre>

<p><strong>PHP</strong></p>

<pre><code>if(isset($_POST['values']))
{
    $values = $_POST['values']); //remove duplicate numbers

    echo $values;
}
</code></pre>

<p><strong>Output</strong></p>

<p>1,2,3,4,5</p>

<p>How would that work? First sort the numbers? And then run them through a loop?</p>
