Check if PHP variables are hold unique values
<p>I have 20 variables, each holding a number between 1 and 10000.</p>

<p>Is there a simple way of checking that all of the variables hold a unique value, and if not sending the user away.</p>

<p>for example,</p>

<pre><code>if($var1,$var2,$var3...etc are not unique)
{
location wherever.php
exit;
}
</code></pre>

<p>The front end should prevent the user submitting the same value twice however I need to check it.</p>

<p>Thanks :)</p>
