Page 1 of 1

String separating and arrays

Posted: Sun Apr 23, 2006 12:04 pm
by Ruski
Hi,
Im trying to find a method of separating strings such as:

1,5,13,42

or

4,2,1

and add the values of the numbers to an array

Any ideas of how I would go about doing this

Thanks

Re: String separating and arrays

Posted: Sun Apr 23, 2006 12:06 pm
by Chris Corbyn
Ruski wrote:Hi,
Im trying to find a method of separating strings such as:

1,5,13,42

or

4,2,1

and add the values of the numbers to an array

Any ideas of how I would go about doing this

Thanks
*yawn*

explode()

Posted: Sun Apr 23, 2006 12:13 pm
by Ruski
thanks, that was a bit too easy