Transpose a multidimensional array with variable depth (2 levels and 3 levels) – PHP
I need to restructure an array containing data in 2 levels and 3 levels. All of the values should be grouped by their indexes, but I need to maintain associative relationships. Sample input: $variation = [ "sku" => [ 0…