Re: Best String to Array Solution

From: Date: Fri, 12 Jul 2002 00:42:42 +0000
Subject: Re: Best String to Array Solution
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-107278@lists.php.net to get a copy of this message
take a look at explode() and split(). On Thu, 11 Jul 2002, Shane wrote: > 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! > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#107278) next »