Is there a php function which can take the below array
array (size=4)
1 => string '0'
6 => string '1'
7 => string '1'
8 => string '7'
And flip it to the below array notice that an array must have unique key values so can we flip the array where value 1 = key values 6, 7
array (size=3)
0 => string '1'
1 => string '6, 7'
7 => string '8'