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

2007-02-06 Thread Matt Carlson
do this in a better 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-di

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 som

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\\'), which can >> vary in length (no set number of depths) to a multi-dimensional array >> (i.e. array('Interfac

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\\'), which can > vary in length (no set number of depths) to a multi-dimensional array > (i.e. array('Interface' => array('Addons' => arr

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\\'), which can vary in > length (no set number of depths) to a multi-dimensional array (i.e. > array('Interface' => array('Addons' => array('' => )));). > > > We cam

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

2007-02-05 Thread Matt Carlson
Over the weekend, I was tasked with taking a string representation of a directory ('\Interface\Addons\\'), which can vary in length (no set number of depths) to a multi-dimensional array (i.e. array('Interface' => array('Addons' => array('' => )));). We came up with a very ugly hack to do it