breaking up a string
Posted: Sat Sep 30, 2006 5:38 am
What is the best way to break up a string separated by a certain character. I have path saved in $path which could me something like this:
folder1/folder2/folder3/
I'd like to break up the string into
folder1
folder2
folder3
and save it into an array.
Any suggestions would be great.
folder1/folder2/folder3/
I'd like to break up the string into
folder1
folder2
folder3
and save it into an array.
Any suggestions would be great.