PHP template engine: simplePhpTmp is a PHP template engine for data programming, including page templates, data caching, and a lightweight framework for mysql database encapsulation.
SimplePhpTmp is a simple php template that is 10 times faster than smarty. it is convenient and concise, and implements variable replacement, conditions, and cyclic statements. it supports nesting and basic operations.
1. replace the {_ key} variable with the value of the array.
2. {_ IF key }.. {ELSE }... {ENDIF} condition statement = <># (not equal to) {_ IF key = value} {_ IF key = _ value}
3. the {_ FOREACH key}... {ENDFOR} loop statement is supported.
4. multi-layer array variable replacement of {_ key. k1.k2} is supported.
5. replacement of common variables under the number {_ 0} is supported.
6. support multi-layer nesting of conditions and loop statements
7. supports single-character operator expressions. |=> <# + -*/. indicates the next level | indicates the variable link # indicates not equal to = indicates that the variable following the logical equality operator starts with _, and the constant does not need
8. support file inclusion {_ INCLUDE mymenu.html}
Project homepage:Http://www.open-open.com/lib/view/home/1449280469248