string splitting into arrays
Posted: Sat Apr 17, 2004 9:41 am
hey up people.
right i have a string (a link) to a certain picture.
for example:
"pictures/1/1/3.jpg"
and what i want to do is to split it at the second slash so that everything to the left ('pictures/1/')goes in array0 and everything to the right ('1/3.jpg')goes in array1. is this possible at all?! im tryin to find easier ways other than explode, joining them all together, etc.
cheers for any help,
chris.
right i have a string (a link) to a certain picture.
for example:
"pictures/1/1/3.jpg"
and what i want to do is to split it at the second slash so that everything to the left ('pictures/1/')goes in array0 and everything to the right ('1/3.jpg')goes in array1. is this possible at all?! im tryin to find easier ways other than explode, joining them all together, etc.
cheers for any help,
chris.