$compiled_header_template = str_replace('\\\\$', '\\$', addslashes($templates['header'])); eval('$header = "' . $compiled_header_template . '";'); echo $header;