Re: Splitting a string by a ,

From: Date: Fri, 05 Dec 2003 07:31:00 +0000
Subject: Re: Splitting a string by a ,
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-31907@lists.php.net to get a copy of this message
On Friday 05 December 2003 15:23, Chris Payne wrote: > I'm trying to split a string into an Array by a , but I kepe getting > errors. Looking at the PHP manual, I thought it would be this way: > > $keywords = preg_split(",", $email); > > But it keeps saying that the , isn't an ending delimiter? Study and *understand* the examples liberally plastered all over the chapter "Regular Expression Functions (Perl-Compatible)". Even if you don't fully understand it, at least figure out the basic syntax of how to specify a regex. Hint: all you need to know is contained in the error message and the introductory paragraph. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-db ------------------------------------------ /* You cannot propel yourself forward by patting yourself on the back. */

« previous php.db (#31907) next »