String replacement

adermimague

New Member
For example i have this string:\[code\]$test_str = "num Test \n num Hello \n num World";\[/code\]And i need to replace these \[code\]num\[/code\]-s to increasing numbers. like that\[code\]"1 Test \n 2 Hello \n 3 World"\[/code\]How could i do this?
 
Back
Top