templates - PHP Templating Preg_Replace -


I am creating a simple templateing system in PHP.

If I have a variable named $ var, I want that [var] be replaced with the value of $ var but I want to work with anything in square brackets. Can anyone give me a Preg_Replace for this?

Not resolved, you might want to start with:

Read more:

Have fun

Comments