RE: [PHP] Best String to Array Solution
| From: | David Freeman | Date: | Fri, 12 Jul 2002 01:27:08 +0000 |
| Subject: | RE: [PHP] Best String to Array Solution | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-107284@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.
Check out explode() and I think you'll find what you need.
CYA, Dave