How to make a php variable {title}?

Quackster

a devbest user says what
Aug 22, 2010
1,764
1,241
Code:
<?php

$contents = file_get_contents("templates/index.html");

$contents = str_replace("{title}", "title here", $contents);

echo $contents;

?>
 

Users who are viewing this thread

Top