0

I have a PHP multiD array like array($arrayA, $arrayB, $arrayA, $arrayC, $arrayC, $arrayA...........) ho can I get a resulting array which have distinct elements from this array and sorted with the more occurance first like... array( $arrayA, $arrayB, $arrayC) because array $arrayA was 3 tumes in first array so it comes first in resulting array.

1st Nov 2016, 5:56 AM
santosh ojha
santosh ojha - avatar
3 Answers
1st Nov 2016, 10:07 AM
TheNewHEROBRINE
TheNewHEROBRINE - avatar
0
it won't work for MultiD array and also we can't get sorted array as i want
4th Nov 2016, 12:10 PM
santosh ojha
santosh ojha - avatar
0
6th Nov 2016, 2:11 PM
TheNewHEROBRINE
TheNewHEROBRINE - avatar