how to assign a php function in a .tpl file?
suppose your function is this
return rand(0, pow(10, $n));
this will fetch random function in .tpl file. if you are a smarty starter than remember you need to have smarty class defined for more about it please visit http://www.smarty.net/quick_install to know more