![]() |
Build multi-dimensional array out of a flat array
Hi All,
I am having some issues doing this. I think the only way to accomplish this is to use a recursive function, however I am failing miserably. Basically, I need to turn a flat array into a multi-dimensional array. The flat arrays *values* need to become the new *keys* to the multi-dimensional array. The array I feed to it can have 1 value in it, up to nth high. Example: PHP Code:
PHP Code:
|
PHP Code:
|
Awesome, thanks mate!
|
| All times are GMT. The time now is 11:30 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0