/** * 1. Write a function that accepts a multi-dimensional container of any size and converts it into * a one dimensional associative array whose keys are strings representing their value's * path in the original container. * * Ex Output: * [ * 'one/two' => 3, * 'one/four/0' => 5, * 'one/four/1' => 6, * 'one/four/2' => 7, * 'eight/nine/ten' => 11 * ] */ $data = [ 'one' => [ 'two' => 3, 'four' => [5, 6, 7] ], 'eight' => [ 'nine' => [ 'ten' => 11 ] ] ];