Organizational Research By

Surprising Reserch Topic

how to remove duplicated 2 dimension array in php using -'php,arrays'


how to remove duplicated 2 dimension array in php  using -'php,arrays'

I have some idea from the previous posts that were talking about making a hash value for each $array[$i], and then compare the hash to get the unique array, but I don't know what I can do exactly.

My sample array Data:

$arr[] = array(0,1,2,3);
$arr[] = array(4,5,2,1);
$arr[] = array(0,0,0,0);
$arr[] = array(0,1,2,3);


I expected to return:

$arr[] = array(0,1,2,3);
$arr[] = array(4,5,2,1);
$arr[] = array(0,0,0,0);


Can anyone post me a function for this purpose?

Many Thanks!
    
asked Sep 7, 2015 by rajesh
0 votes
6 views



Related Hot Questions



Government Jobs Opening


...