Посоветуйте как правильней и лучше оставить. Из двух одинаковых записей какая будет быстрей работать.
PHP:
$temphead = str_replace ('{style_path}', $style_path, $temphead);
$temphead = str_replace ('{style}', $template, $temphead);
$temphead = str_replace ('{page}', $pages, $temphead);
$temphead = str_replace ('{site_url}', $site_url, $temphead);
$temphead = str_replace ('{site_path}', $site_path, $temphead);
$temphead = str_replace ('{title_web}', $title_web, $temphead);
$temphead = str_replace ('{description_web}', $description_web, $temphead);
$temphead = str_replace ('{keyword}', $keyword, $temphead);
$temphead = str_replace ('{language}', $language, $temphead);
$temphead = str_replace ('{loading_start}', $loading_style_start, $temphead);
$temphead = str_replace ('{style_css}', $style_css, $temphead);
$temphead = str_replace ('{date_time}', date($date_format[$date_format_num],time()), $temphead);
$templ = str_replace ('{style_path}', $style_path, $templ);
$templ = str_replace ('{style}', $template, $templ);
$templ = str_replace ('{page}', $pages, $templ);
$templ = str_replace ('{site_url}', $site_url, $templ);
$templ = str_replace ('{site_path}', $site_path, $templ);
$templ = str_replace ('{loading_img}', $loading_img, $templ);
$templ = str_replace ('{date_time}', date($date_format[$date_format_num],time()), $templ);
$templ = str_replace ('{SizeText}', $textT, $templ);
$tempfoot = str_replace ('{page_line}', $page_line, $tempfoot);
$tempfoot = str_replace ('{timegen}', $timegen, $tempfoot);
$tempfoot = str_replace ('{count_total}', $count_total, $tempfoot);
$tempfoot = str_replace ('{users_online}', $users_online, $tempfoot);
$tempfoot = str_replace ('{date_time}', date($date_format[$date_format_num],time()), $tempfoot);
$tempfoot = str_replace ('{loading_end}', $loading_style_end, $tempfoot);
PHP:
$with_temphead = array(
'{style_path}',
'{style}',
'{page}',
'{site_url}',
'{site_path}',
'{title_web}',
'{description_web}',
'{keyword}',
'{language}',
'{loading_start}',
'{style_css}',
'{date_time}');
$on_to_temphead = array(
$style_path,
$template,
$pages,
$site_url,
$site_path,
$title_web,
$description_web,
$keyword,
$language,
$loading_style_start,
$style_css,date($date_format[$date_format_num],time()));
$temphead = str_replace ($with_temphead,$on_to_temphead,$temphead);
$with_templ = array(
'{style_path}',
'{style}',
'{page}',
'{site_url}',
'{site_path}',
'{loading_img}',
'{date_time}',
'{SizeText}');
$on_to_templ = array(
$style_path,
$template,
$pages,
$site_url,
$site_path,
$loading_img,date($date_format[$date_format_num],time()),
$textT);
$templ = str_replace ($with_templ,$on_to_templ,$templ);
$with_tempfoot = array('
{page_line}',
'{timegen}',
'{count_total}',
'{users_online}',
'{date_time}',
'{loading_end}');
$on_to_tempfoot = array(
$page_line,
$timegen,
$count_total,
$users_online,
date($date_format[$date_format_num],time()),
$loading_style_end);
$tempfoot = str_replace ($with_tempfoot,$on_to_tempfoot,$tempfoot);
Последнее редактирование модератором: