<Operator-wixy in PHP

Source: Internet
Author: User
& Lt; operator-wixy provided in PHP < <运算符构建多行字符串序列的方法,通常称为here-document或表示为heredoc的简写。< p>

This method details the literal value of a string and retains the underline and other spaces (including indentation) of the string in the text ). For example:

  1. 1 

The PHP parser outputs all the content in the middle of the two _ END labels, which is equivalent to a string referenced by double quotation marks.

This means that we can write the entire HTML language directly in the PHP code, and then use the PHP variable to replace the specific dynamic part.

  1. 1 

You can also assign the values of the two tags to the variables in this way.

Note: the _ END label used to close must be placed on a single line, and other content cannot be added to this line, even if comments or spaces are not allowed.

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.