Best String to Array Solution
| From: | Shane | Date: | Fri, 12 Jul 2002 00:07:00 +0000 |
| Subject: | Best String to Array Solution | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-107272@lists.php.net to get a copy of this message | ||
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!
Chaka Loves You!