title: php get unique sub array
body: <p>I want to get a solution in PHP to get unique array based on sub array bases. Like this</p>
  
  <pre><code>Array
  (
  [0] =&gt; Array
      (
          [0] =&gt; 1227
          [1] =&gt; 146
          [2] =&gt; 1
          [3] =&gt; 39
      )
  
  [1] =&gt; Array
      (
          [0] =&gt; 1227
          [1] =&gt; 146
          [2] =&gt; 1
          [3] =&gt; 39
      )
  
  [2] =&gt; Array
      (
          [0] =&gt; 1228
          [1] =&gt; 146
          [2] =&gt; 1
          [3] =&gt; 39
      )
  )
  </code></pre>
  
  <p>to </p>
  
  <pre><code>Array
  (
  [0] =&gt; Array
      (
          [0] =&gt; 1227
          [1] =&gt; 146
          [2] =&gt; 1
          [3] =&gt; 39
      )
  
  [1] =&gt; Array
      (
          [0] =&gt; 1228
          [1] =&gt; 146
          [2] =&gt; 1
          [3] =&gt; 39
      )
  
  )
  </code></pre>
  
  <p>I mean to say  <code>array[1]</code> should be removed as <code>array[0]</code> and <code>array[1]</code> are the same. I tried to use <code>array_unique</code> but it didn't work for me.</p>