i have a problem and need your help. i want use my custom tag in my script code like [tag] and analyze all html code then parser codes and Replace these tags with php code or my output world and echo my output
a simple code :
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>[MY_PAGE_TITLE]</title>
</head>
<header></header>
<div class="left">[MY_WEBSITE_LEFT_SIDEBAR_INFORMATION]</div>
<article>[MY_WEBSITE_ARTICLE]</article>
<div class="right">[MY_WEBSITE_RIGHT_SIDEBAR_INFORMATION]</div>
<footer></footer>
<body>
</body>
</html>
my first tag [MY_PAGE_TITLE] should be replaced with one world like "my website" i want use this for my language website. i get this word from a array like :
mylangarray [
MY_PAGE_TITLE="my website"
]
but for my any other tag i want load some module to left or right sidebar or load some article from my DB
How can I do this?