RE: [PHP] Best String to Array Solution

2002-07-11 Thread David Freeman
> Greetings, this may be simple, but it's late and my brain > needs a hand. > > I have a string such as "first,second,third,fourth" > > I need a way to take each one of the items separated by the > comma to be an item in an array. Check out explode() and I think you'll find what you n

[PHP] Best String to Array Solution

2002-07-11 Thread Shane
Greetings, this may be simple, but it's late and my brain needs a hand. I have a string such as "first,second,third,fourth" I need a way to take each one of the items separated by the comma to be an item in an array. I tried ereg() but to no avail. Is there a simpler way to do it? Thanks gang!