Organizational Research By

Surprising Reserch Topic

how to recursively create a multidimensional array using -'php,recursion,multidimensional-array'


how to recursively create a multidimensional array  using -'php,recursion,multidimensional-array'

I am trying to create a multi-dimensional array whose parts are determined by a string. I'm using . as the delimiter, and each part (except for the last) should be an array
ex:

config.debug.router.strictMode = true


I want the same results as if I were to type:

$arr = array('config' => array('debug' => array('router' => array('strictMode' => true))));


This problem's really got me going in circles, any help is appreciated. Thanks!
    
asked Sep 8, 2015 by rajesh
0 votes
8 views



Related Hot Questions



Government Jobs Opening


...