There is for example my type array:
array = [ 0 = [ Propery = '1'; ] 1 = [ Propery = '2'; ] 2 = [ Propery = '1'; ] 3 = [ Propery = '3'; ] 4 = [ Propery = '2'; ] 5 = [ Propery = '1'; ] ] At the output I want to get an array of type
array = [ 0 = [ 0 = [ Propery = '1'; ] 2 = [ Propery = '1'; ] 5 = [ Propery = '1'; ] ] 1 = [ 1 = [ Propery = '2'; ] 4 = [ Propery = '2'; ] ] 3 = [ 3 = [ Propery = '3'; ] ] ] That is, to get all the arrays, sorted by groups for some indicator. I tried to write myself, but it was too cumbersome and bad code. Maybe there is some kind of universal solution using std. php functions?
var_dump(Or what is this for your format?) - vp_arth