I want to take a string, for example
"/test/uri/to/heaven"
and turn it into a multidimensional, nested array, such as:
array(
'var' => array(
'www' => array(
'vhosts' => array()
),
),
);
Does anyone have pointers? I looked at Google and search here, but I did not see anything.
source
share