I am in the hard task of rewriting a template system, specificly to support repeating content of a forum script.
I am currently tyring this with a dummy file at the moment and I am stuck on one part.
What is basically does, is load the following html which has worked well, but what I need to do is a value where it cuts the html between 2 tags so I can use it to be repeated before reinserting.
$string = '<div class="boxone">Memberlist</div>
<!-- row -->
Username is {USERNAME}
<!-- row -->';
So in short, what I am looking to do is cut 'Username is {USERNAME}' out of the string, preferbly in a function, so I would end up with something similar to bellow
$snippet = bock('row',$string);
print $snippet; // outputs Username is {USERNAME}
Any help would be appreciated