Re: Why isn't this working?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux