Variable containing a path as a string to multi-dimensional array?

daringdeer

New Member
I'm looking to take a string such as/var/www/vhostsand turn it into a multi-dimensional, nested array such as:\[code\]array( 'var'=>array( 'www'=>array( 'vhosts'=>array() ), ),);\[/code\]Anyone got any pointers? I've had a look through Google and the search here, but I've not seen anything.Thanks very much.
 
Back
Top