- Joined
- Nov 16, 2009
- Messages
- 866
- Reaction score
- 580
Hello
I am stuck on a function I need to create in order to manage my cache from a custom admin panel. Can anyone of you think of a possible way to create a function that will create a multidimensional array from an array with values separated by dots. Because I certainly cannot after trying 3 hours.
It's hard to explain what i mean but perhaps this will make you understand more:
Would look something like this when it has been "translated":
I am stuck on a function I need to create in order to manage my cache from a custom admin panel. Can anyone of you think of a possible way to create a function that will create a multidimensional array from an array with values separated by dots. Because I certainly cannot after trying 3 hours.
It's hard to explain what i mean but perhaps this will make you understand more:
PHP:
Array
(
[0] => ragephp.config.website
[1] => ragephp.config.server
[2] => ragephp.stats
[3] => rageweb.locale.page-index
[4] => rageweb.locale.page-register
[5] => ragezone
)
Would look something like this when it has been "translated":
PHP:
Array
(
[ragephp] => Array
(
[config] => Array
(
[website] =>
[server] =>
)
[stats] =>
)
[rageweb] => Array
(
[locale] => Array
(
[page-index] =>
[page-register] =>
)
)
[ragezone] =>
)