How can I solve the problem of using templates in php?

Source: Internet
Author: User
In php, templates can be used for style templates or text templates on websites. why is the form of {} in php? I don't quite understand... this can be defined by myself. I just want to distinguish it from html labels. I personally think this is the case. what about the Downstairs View ?, First, PHP uses the template's process 1. define the PHP changes in the html file (for example, {}, & lt ;! -- Using templates in php
You can use style templates or text templates on the website ..
Why is it in the form of {} in php?
Not very understandable ....

------ Solution --------------------
This can be defined by myself, just to distinguish it from html tags. I think it is like this,
What about the downstairs opinion?
------ Solution --------------------
Top one
------ Solution --------------------
PHP template process
1. define the PHP changes in the html file (for example {}, , Etc)
2. use php scripts to retrieve html files
3. use PHP to change the actual variable quantity to the custom variable quantity in html. you can use the regular expression table.
4. Complete
------ Solution --------------------
It is mainly used to give a replacement sign.

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.