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. */ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php