programa: example02.php
include('phemplate.class.php');
$tpl = new phemplate();
$tpl->set_file('page', 'example02_page.txt');
$tpl->set_file('menu', 'example02_menu.txt');
$tpl->set_file('content', 'example02_alus.txt');
echo $tpl->process('', 'page');
rezultatas:
galvelė alus / vynas / degtinė / pienas tu geri, aš geriu, jisji geria - mes girti kojelė