Re: convert " " to
| From: | Gonzalo Vera | Date: | Wed, 30 Aug 2000 15:29:33 +0000 |
| Subject: | Re: convert " " to | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-2303@lists.php.net to get a copy of this message | ||
str_replace
Use as stated in the manual:
string str_replace(string needle, string str, string haystack);
So it would be:
str_replace(" "," ","aaa bbb cccc");
Gonzalo.
> Hi all!
> I am new to PHP.
> I have string
> "aaa bbb cccc"
> I want to convert to
> "aaa bbb cccc"
> How can I do ?
> Thanks for your help
> Regards
> Cong