No. PHP itself doesn't do this. There are several template engines for PHP.
Smarty is one of them.

I looked into a few of them until I realised that my problem was mixing
logic and presentation, not php. So now I write the application logic and
presentation template in separate files, but both in php. PHP to be
completely satisfactory for both.

I've always found a certain symmetry and irony in the fact that my job is
coding a spooled file reformatting tool which is written in RPG - possibly
the grandaddy of template engines?
Mihael. Yes =)

But how would I access a PHP template engine from RPG?

I haven't looked at php on the as/400 but there must be a way surely. would
system() do ?

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact
[javascript protected email address].