PHP: How to convert HTML template to string by executing logic inside HTML? -


is there way in can read html file in php script can provide me contents of file string output replacing variables , executing logic?

basically, looking php function can serve template engine. coming python, django looking similar render function in django.

try using str_replace function passing html template vars want replaced in template.

i suggest consider using template engine smarty or twig.


Comments

Popular posts from this blog

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -