Re: Why isn't this working?
| From: | Rasmus Lerdorf | Date: | Sun, 27 Feb 2005 04:56:36 +0000 |
| Subject: | Re: Why isn't this working? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-38692@lists.php.net to get a copy of this message | ||
Chris Payne wrote:
Hi everyone, I’m trying to split a string by comma, but it’s not working, can you see any reason that the below doesn’t work? $keywords = preg_split(',','$Agent_Rep');Not sure why you sent this to php-db, but have another look at the preg_split documentation. You need '/,/' there to split on a comma. -Rasmus