This is a very basic way of doing templates. It may work for small applications, but it's not as powerful as a real full-sized templating engine such as Smarty.