title: Using PHP remove duplicates from an array without using any in- built functions?
body: <p>Lets say I have an array as follows :</p>
  
  <pre><code>$sampArray = array (1,4,2,1,6,4,9,7,2,9)
  </code></pre>
  
  <p>I want to remove all the duplicates from this array, so the result should be as follows:</p>
  
  <pre><code>$resultArray = array(1,4,2,6,9,7)
  </code></pre>
  
  <p>But here is the catch!!! I don't want to use any PHP in built functions like <code>array_unique()</code>.</p>
  
  <p>How would you do it ? :)</p>