Re: separated string by comas
| From: | Jason Wong | Date: | Mon, 22 Jul 2002 08:15:44 +0000 |
| Subject: | Re: separated string by comas | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-108836@lists.php.net to get a copy of this message | ||
On Monday 22 July 2002 14:56, rdkurth@starband.net wrote:
> I have a string that is separated by spaces like this
> $string="test test1 test2 test3";
> how can I make the string so it is separated by comas like this
> $string="test,test1,test2,test3";
> I know this is probably simple but I just can't figure it out
str_replace()
--
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
Forced to support NT servers; sysadmins quit.
*/