Hello,
I try to find the best method to handle a string.
Lets say I have a string that I get from the database:
$str = "What is the area of #Country#?";
What I want to do is extract Country from the string replace it with a value and insert it back to the string in the relevant place.
So in the end it will look like:
$new_str = "What is the area of Italy?";
Of course I don't know if the string will have #Country# or something else. So I am looking for a sub string between two ##
any ideas?