Check if any values in array are equal to each other
<p>I'm validating a form that submits up to 3 different id's depending on what the user selects.</p>

<p>I've put them into an array: </p>

<pre><code>$submitted_genres = array($_POST['genre1'], $_POST['genre2'], $_POST['genre3']);
</code></pre>

<p>How I can check to make sure that none of the array values are equal each other?</p>
