Regular Expressions

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

 



How do I use preg_replace to replace a space (" ") with a comma (",")?

i am using:

preg_replace('/ /', ',', $string).

this isn't working.


--
Gerardo S. Rojas
mailto: grojas@strategicinc.com


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux