Code: Select all
$html_tpl = '
<b>%title%</b><br>
<i>%time%</i><br>
<a href="%url%">%url%</a><br>
<br>';Code: Select all
$html = preg_replace('/\%(.+)\%/ie', "$\\1", $html_tpl);Code: Select all
%">%Moderator: General Moderators
Code: Select all
$html_tpl = '
<b>%title%</b><br>
<i>%time%</i><br>
<a href="%url%">%url%</a><br>
<br>';Code: Select all
$html = preg_replace('/\%(.+)\%/ie', "$\\1", $html_tpl);Code: Select all
%">%Code: Select all
$html = preg_replace('/\%(ї^\%]+)\%/ie', "$\\1", $html_tpl);