How can I call specific array when the array keys are numbers. My array looks like this:
my arrays is equal to $output:
Array
(
[7] = Array
(
[name] = Grill Specifications
[attributes] = Array
(
[46] = Array
(
[name] = Fuel Type
[values] = Array
(
[0] = Charcoal,Natural Gas,Combo
[1] = Charcoal,Propane,Combo
[2] = Charcoal,Propane,Natural Gas,Combo
[3] = Natural Gas
[4] = Natural Gas,Propane
[5] = Propane
[6] = Propane,Natural Gas
)
)
and so on... I have alot of them...
What I need to do is take all the keys of the [values] and explode the values of those keys where there is a comma. Then make them all unique. I do not know how to call those arrays without having to keep typing the numbers like this: $output[7][attributes][46][values]
Any help would be appreciated.