Pfctemplate Main Features
1. High efficiency
Because there is no formal expression to parse variables and chunks in the program, PHP built-in strings are used
Processing function, so the efficiency may be slightly higher than the same product
2. Ease of Use
Use this class to simply create an instance of the class, add file, set variable/block--[if there is a block then parse]
Parse file can be completed. Using commonly used naming methods to provide easy-to-understand API interface methods.
3. Multi-level block processing
Many complex effects can be achieved through the multi-level block processing of the program, allowing for an infinite level of nesting (machine performance permitting)
4. Templates that can handle multiple sources
Templates do not have to be made into files, either from a database or from other sources.
$str = Read_template_string ();
$tpl->set_string (' Handle1 ', $str);
5. Variable Customizable
Identifiers in templates can be self-adjusting.
For example, to customize the identifier of a simple variable to "{/var
http://www.bkjia.com/PHPjc/445255.html www.bkjia.com true http://www.bkjia.com/PHPjc/445255.html techarticle pfctemplate Main features 1. High efficiency because of the analysis of variables in the program, chunks do not use the regular expression to do, and the use of PHP built-in string processing functions to do, so efficiency may be ...