Let's just say I want a particular part of a template to loop while I build each item in it. How could I go about doing that?
CODE
<h1>A Header</h1>
<ul>
<loop><li>$variable</li></loop>
</ul>
<ul>
<loop><li>$variable</li></loop>
</ul>
So then in the example above I would want to loop through a list. Let's imagine the above template is in a string called $page. How would I use $page and then create my list inside it. I am not so good with regular expressions.
Thanks in advance to any replies.