Re: language
Nope.
You can't make direct calls to php functions in a template. You can only do it throught template operators, fetches, modules, etc.. and use them from your templates.
You should look for documentation in this site about template operators development, they are quite simple to implement.