I have a text file with the follow content:
This is a static content
{{ echo "Hello World" }}
The file is named test.txt
What I want is to parse this file using PHP and create a new file with the following content:
This is a static content
Hello World
As you can see the code inside the curly braces: {{}} needs to be executed before save to the target file. I don't know where to start to achieve my goal.