Hello. There is an array
[cart] => Array ( [32] => 31 [29] => 31 [30] => 31 [22] => 5 [20] => 5 ) how to compare the value in this array, and if they are equal then add their keys to one line. For example: the key value 32 coincides with the value 29 and 30, you need to take these keys (32,29,30) and add srt_30 = (32,29,30) to the line. Can this be done at all?