Page 1 of 1

split a string

Posted: Wed Aug 03, 2005 12:11 pm
by winsonlee
lets say i hav a string "abc,def,ghi"

how can i split this string and store it in an array eg

array1 = abc
array2 = def
array3 = ghi

Posted: Wed Aug 03, 2005 12:13 pm
by timvw

Posted: Wed Aug 03, 2005 12:21 pm
by nielsene
actually I think you meant explode...

Posted: Wed Aug 03, 2005 12:29 pm
by timvw
You're right... but the OP would have found that when he look at the implode page ;)