Hi,
I have a variable that contains HTML with certain tags like {NEWS}, {DIARY}, {ETC}. So a template could look like this:
I want to make a loop that foreach keyword (tag) replaces the tag with the appropriate content. Something like this..
Please advice
Masali
I have a variable that contains HTML with certain tags like {NEWS}, {DIARY}, {ETC}. So a template could look like this:
Code:
<html>
<head>
<title>Test</title>
</head>
<body>
<table border="1" cellspacing="1" width="100%" id="AutoNumber1">
<tr>
<td width="50%">{NEWS}</td>
<td width="50%">{DIARY}</td>
</tr>
</table>
</body>
</html>
I want to make a loop that foreach keyword (tag) replaces the tag with the appropriate content. Something like this..
Code:
while($tag=regexpression)
{
$tag=$content[$tag];
}
Please advice
Masali