Page 1 of 1

convert string into an array

Posted: Thu Dec 02, 2004 9:21 am
by pelegk2
i have a string like :
1,3,6,7,43,

and i wantto convert it into an array
how can i do that?
thnaks in advance
peleg

Posted: Thu Dec 02, 2004 9:35 am
by mcog_esteban
use the explode function.

ex: $arr = explode(",",$string);