Possible Duplicate:
Convert multidimensional array into single array
I have this array:
Array
(
[one] => one_value
[two] => Array
(
[four] => four_value
[five] => five_value
)
[three] => Array
(
[six] => Array
(
[seven] => seven_value
)
)
)
And I want to convert it to this type of array:
Array
(
[one] => one_value
[two-four] => four_value
[two-five] => five_value
[three-six-seven] => seven_value
)
How can I achieve this? With some kind of "recursiveness"? But how? :\ Thanks in advance!