I'm looking to take a string such as
"/test/uri/to/heaven"
and turn it into a multi-dimensional, nested array such as:
array(
'var' => array(
'www' => array(
'vhosts' => array()
),
),
);
Anyone got any pointers? I've had a look through Google and the search here, but I've not seen anything.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…