how do I replace certain characters in a string?
Posted
by user296516
on Stack Overflow
See other posts from Stack Overflow
or by user296516
Published on 2010-05-28T07:30:14Z
Indexed on
2010/05/28
7:31 UTC
Read the original article
Hit count: 181
php
Hi guys, Suppose I have a string like this
SOMETHING [1000137c] SOMETHING = John Rogers III [SOMETHING] SOMETHING ELSE
and I need to turn it into this
SOMETHING [1000137c] SOMETHING = John_Rogers_III [SOMETHING] SOMETHING ELSE
Therefor I need to replace spaces between words after "[1000137c] SOMETHING = " and before " [". How can I do that in php?
Thanks!
© Stack Overflow or respective owner