PHP Clean Up Permutated Array -
Hey everyone, basically, I have an array:
array ('a', 'b', 'c');
Now I run it through an array permutation function and the result is:
Array ([0] => Array ([ 0] => C) [1] = & gt; Array ([0] => gt; [2] = & gt; Array ([0] = & gt; B [1] = & gt; C) [3] => Array [0] => C [1] => gt; [4] = & gt; Array ([0] = & gt; A) [5] = & gt; Hey ([0] = & gt; a [1] = & gt; c) ([0] [8] => Array ([0] => [1] => A) [ 9] = & gt; Hey ([0] => A [1] => [2] => C) [10] => Array ([0] = & gt; A [1] = & gt; C [2] => gt; [11] = & gt; Array ([0] => B [1] => A [2] => C ) [12] = & gt; Array ([0] = & gt; B [1] => C [2] => A) [13] = & gt; Array ([0] => ; C [1] => A [2] => gt; [14] => Array ([0] => c [1] => B [2] => ; A)) Now my question is how can I clear that array so that: is similar to the array (C, B) array (B, C)
And it removes the second array
I like it Ll?
Edit ... After some research based on your answer, this is what came with me:
array_walk ($ array, type '); $ Array = array_unique ($ array); Type ($ array); // Not required
Just element array:
FORECH ($ ARREZ AS & AR) {sort ($ arr); } {"C", "B"} => {"B", "C"} = and {"B", "C"} => >>
{ "B", "c"}
which are similar.