How to write pseudo-code programs in PHP.

Source: Internet
Author: User
How to write pseudo-code programs in PHP .. RT .. just like some forums .. customize rules by yourself, such as {url}: representing the link address {title}: representing the title. Are there any good examples or examples for reference .. thank you .., all you are talking about are templates, which are replaced by regular expressions ., This is not a pseudo-code. how can I write a pseudo-code program in PHP ..
RT ..

Just like some forums .. customize rules by yourself, such as {url}: representing the link address {title}: representing the title. Are there any good examples or examples for reference .. thank you ..


------ Solution --------------------
All you are talking about are templates, which are replaced by regular expressions.
------ Solution --------------------
This is not pseudo code.

The elements enclosed in curly brackets are generally template elements, such as {url}, which are written in the template file and replaced by php with actual values during runtime.

The square brackets usually enclose UBB or bccode, such as [url]. the content written by the user in the submitted content is replaced with the html tag when displayed. The html written by the user will be displayed as text
------ Solution --------------------
Discussion

Reference:
This is not pseudo code.

The elements enclosed in curly brackets are generally template elements, such as {url}, which are written in the template file and replaced by php with actual values during runtime.

The square brackets usually enclose UBB or bccode, such as [url]. the content written by the user in the submitted content is replaced with the html tag when displayed. The html written by the user will be displayed as text


That makes sense... who knows how to define and process these templates in phpwind or discuz ......

------ Solution --------------------
Discussion

Can I define such element values as {url} by myself without using a template...

------ Solution --------------------
In fact, you are talking about the templet template or architecture. Click the tag in detail.

For example, dedecms thinkphp can all Customize tags.

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.