Jump to content

Archived

This topic is now archived and is closed to further replies.

speedy33417

breaking up a string

Recommended Posts

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.

Share this post


Link to post
Share on other sites
http://ca.php.net/manual/en/function.explode.php

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.