How to check duplicates for 5 textfields with PHP?
<p>I have 5 textfields for user input in a form namely:</p>

<p><code>username1, username2, username3, username4 and username5</code></p>

<p>I would like to know how should I write my php code such that I will be able to check if there is any duplicates between the 5 textfields during POST?</p>

<p>I can only think of comparing <code>(username1 !== username2)</code> and so on, but I think there should be simpler way to do it right? How should I be able to do it?</p>

<p>Thank you very much.</p>
