String to array parsing

String to array parsing

How can I split a piece of text like the following :

/mysite/subSection

into an array like the following :

array(
[0] => mysite
[1] => subSection
);

Please help ;-)