title: remove integer index an array
body: <p>I am working on a website where we need to remove the index of an array where type is integer.
  Have you any idea or suggestion regarding.
  My array looks like this :</p>
  
  <pre><code>Array
  (
      [0] =&gt; first
      [first] =&gt; second
      [1] =&gt; second
      [second] =&gt; second
      [2] =&gt; third
      [third] =&gt; third
      [3] =&gt; forth
      [forth] =&gt; v
      [4] =&gt; fifth
      [fifth] =&gt; fifth
  )
  </code></pre>
  
  <p>How we can remove integer index from array.One more thing to note that we have not static array we do not know how many index is there.</p>
  
  <p>Need like this : </p>
  
  <pre><code>Array
  (  
      [first] =&gt; second  
      [second] =&gt; second  
      [third] =&gt; third  
      [forth] =&gt; v
      [fifth] =&gt; fifth
  )
  </code></pre>