I need to count the same values in multidimensional array and remove the duplicates.
My array:
$r = [ [\'a\',\'b\'], [\'a\',\'b\'], [\'c\',\'
and the output:
array(3) { [0]=> array(3) { [0]=> string(1) "a" [1]=> string(1) "b" [2]=> int(2) } [1]=> array(3) { [0]=> string(1) "c" [1]=> string(1) "d" [2]=> int(3) } [2]=> array(3) { [0]=> string(1) "e" [1]=> string(1) "f" [2]=> int(1) } }