I'm looking to take a string such as
/var/www/vhosts
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.
Thanks very much.