It will never receive a base name due to the way the data is structured before being passed into the function. I appreciate everyone's input on this. It's been tough for us to develop what we did (since it's such an odd case), and it's good to see other possible methods to do this in a better manor. ----- Original Message ---- From: Roman Neuhauser <neuhauser@xxxxxxxxxx> To: Jochem Maas <jochem@xxxxxxxxxxxxx> Cc: php-general@xxxxxxxxxxxxx Sent: Tuesday, February 6, 2007 9:03:35 AM Subject: Re: Converting string representation of a directory to multi-dimensional array I had wanted to post something when the thread started, but gave up, because I quickly ran into ambiguities. What should the conversion do when given a basename, e. g. addToList("file.txt", ...)? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php