
$template = './main.html'; //模板文件路径
$output = './' . date('Ymd') . '.html'; //输出文件路径
$replaceAry = array( /瞎轮/要查找替换的内容 每行一个悄败
'{title}' => '标启神颤题',
);
$content = file_get_contents($template);
$content = str_replace(array_keys($replaceAry), $replaceAry, $content);
file_put_contents($output, $content);