I saw in wordpress index.php this trick :
Sorce code:
Code: Select all
<title>{TITLE}</title>
Code: Select all
Testing blog
THX
Moderator: General Moderators
Code: Select all
<title>{TITLE}</title>
Code: Select all
Testing blog
Code: Select all
$your_template = 'hello {name}';
echo str_replace('{name}', 'John Cartwright', $your_template);