PHP language specification-PHP Tutorial

Source: Internet
Author: User
PHP language specification. PHP language specification: 1. variable names in PHP are case-sensitive, but function names, class names, and method names are case-insensitive, however, we recommend that you use case-sensitive PHP language specifications and PHP language specifications.
PHP language specifications:

1. variable names in php are case-sensitive, but function names, class names, and method names are case-insensitive. However, we recommend that you use case-sensitive variables.

2. php code must be written in (Php tag), enable tag (

3. each line of php code ends with a semicolon, and the last line can be omitted.

4. if a php file is composed of pure php code, the php end mark can be omitted. we recommend that you omit it. if it is omitted, the last line must have a plus sign.

5. the php file name cannot contain Chinese characters, and the path cannot contain Chinese characters,

6. Access to PHP files must pass through the server (by domain name)

Example:

PHP language specifications: 1. variable names in php are case-sensitive, but function names, class names, and method names are case-insensitive, but it is recommended to be case-sensitive...

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.