PHP Start-php tag Style

Source: Internet
Author: User
The so-called mark, is to facilitate and other content to distinguish the use of a special symbol, PHP supports a total of 4 kinds of marker style, look.

1.XML marker Style

1 
 
 

The XML style ends with a tag. Write PHP code in the middle. This is the most common markup style for writing PHP scripts. Let's see it in this style.

2. Short marking style

1 
 
 

This is the short mark style, there are also many phper in this style, PHP installed after the short mark style default open state. You can set Short_open_tag = off in profile php.ini (C:\WINDOWS\php.ini) If you want to close it off

3. Script markup Style

 

Script tag style to end;

4.asp marker Style

1 <%2 echo "This is ASP style"; 3%>

Begins with the <% tag and ends with the%> tag. To turn off ASP tag style configurable php.ini file Asp_tags = Off

  • Related Article

    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.