If I have the following string-
How do I use str_replace or preg_replace to change the string into something like this?
Basically, how do I keep the "someValue" bit intact during the function?
Code:
[someTag=someValue]someText[/someTag]
Code:
<someTag someVariable="someValue">someText</someTag>