php(1)-Basic syntax

WBOY
Release: 2016-08-08 09:27:37
Original
1018 people have browsed it

1. Language tag

1. Standard delimiter: form;

                                                                        using using                   through out   through out out through outce out through outce outce out out out out outole out clean out out out out out out of  when to -- ?

?> ;

2. Segment tag delimiter: Form;

To use this form, you need to set short_open_tag in the php.ini file to On, which will take effect after restarting the apache server.

3. Script tag delimiter: form;

4. ASP style delimiter: <% %> form;

             To use this form, you need to set asp_tags in the php.ini file to On, and also restart the apache server.标 Note: The official recommendation uses the form of standard dividing fabrics, because several other methods may cause errors. For example, the second method may lead to the analysis of XML files. Such as js script) confusion, asp style is a form supported in order to dominate the market with asp.

2. Basic syntax

The statement ends with a semicolon ";";

Comment method:

//method, /* */method and #method, derived from c, Shell language comment methods for c++ and Unix.

Identifier: It can only consist of letters, numbers and underscores, and can only start with letters or underscores.

The above has introduced PHP (1) - basic syntax, including aspects of content. I hope it will be helpful to friends who are interested in PHP tutorials.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template