New work template processing class, interested can try _php tutorial

Source: Internet
Author: User
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 ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.