fork download
  1. <?php
  2.  
  3. $array = Array
  4. (
  5. 0 => Array
  6. (
  7. 0 => 'test1',
  8. 1 => 'test1',
  9. ),
  10.  
  11. 1 => Array
  12. (
  13. 0 => 'test12',
  14. 1 => 'test12',
  15. ),
  16.  
  17. 2 => Array
  18. (
  19. 0 => 'test1',
  20. 1 => 'test1',
  21. ),
  22.  
  23. 3 => Array
  24. (
  25. 0 => 'test12',
  26. 1 => 'test12',
  27. )
  28.  
  29. );
  30.  
  31. $results = array();
  32.  
  33. foreach ($array as $k => $v) {
  34. $results[implode($v)] = $v;
  35. }
  36.  
  37. $results = array_values($results);
  38. echo "<pre>";
  39. print_r($results);
Success #stdin #stdout 0s 52488KB
stdin
Standard input is empty
stdout
<pre>Array
(
    [0] => Array
        (
            [0] => test1
            [1] => test1
        )

    [1] => Array
        (
            [0] => test12
            [1] => test12
        )

)