str_replace only let's me replace words.
The sentence i'm searching for is:
[TD="align: left"]".$num."[/TD] [TD="align: left"][/TD]
And I need to replace it with:
[TD="align: left"]".$num."[/TD] [TD="align: left"]".$uid"[/TD]
The thing im searching is in a variable called $newres
I've tried str_replace but as said above it only lets me replace a word at a time, I looked into making them an array but that won't work because there are multiple
[TD="align: left"][/TD]
in the string
Thanks!
try this
output: