Re: [PHP] Converting string representation of a directory to multi-dimensional array

2007-02-06 Thread Jochem Maas
Richard Lynch wrote: On Mon, February 5, 2007 12:27 pm, Matt Carlson wrote: Over the weekend, I was tasked with taking a string representation of a directory ('\Interface\Addons\some dir\some file'), which can vary in length (no set number of depths) to a multi-dimensional array (i.e.

Re: [PHP] Converting string representation of a directory to multi-dimensional array

2007-02-06 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-02-06 12:45:22 +0100: there may also be some kind of solution based on ArrayArrayArrayIteratorIteratorRecursiveArrayIteratorIteratorRecursiveIterator but personally I don't grok those exotic forms of SPL interface well enough to tell you. I had wanted to post

Re: [PHP] Converting string representation of a directory to multi-dimensional array

2007-02-06 Thread Matt Carlson
manor. - Original Message From: Roman Neuhauser [EMAIL PROTECTED] To: Jochem Maas [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Tuesday, February 6, 2007 9:03:35 AM Subject: Re: [PHP] Converting string representation of a directory to multi-dimensional array I had wanted to post

Re: [PHP] Converting string representation of a directory to multi-dimensional array

2007-02-05 Thread Jochem Maas
Matt Carlson wrote: Over the weekend, I was tasked with taking a string representation of a directory ('\Interface\Addons\some dir\some file'), which can vary in length (no set number of depths) to a multi-dimensional array (i.e. array('Interface' = array('Addons' = array('some dir' =

Re: [PHP] Converting string representation of a directory to multi-dimensional array

2007-02-05 Thread Richard Lynch
On Mon, February 5, 2007 12:27 pm, Matt Carlson wrote: Over the weekend, I was tasked with taking a string representation of a directory ('\Interface\Addons\some dir\some file'), which can vary in length (no set number of depths) to a multi-dimensional array (i.e. array('Interface' =