I need to count the same values in multidimensional array and remove the duplicates.
My array:
$r = [ [\'a\',\'b\'], [\'a\',\'b\'], [\'c\',\'
foreach ( $result1 as $key ): $o[implode(', ', $key)][] = null; foreach ($o as $key1) { $g[implode(', ', $key)] = count($key1); } endforeach; print_r($g);