how do I replace certain characters in a string?
- by user296516
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!