PHP Basics 1

Source: Internet
Author: User
Php:hypertext Preprocessor Hypertext Preprocessor


1, user-defined functions, classes and keywords are not sensitive to capitalization such as: echo Echo effect

2. Variable names are case sensitive such as: $y and $Y are 2 variables

3, global keywords used to access globals, functions to access global variables $x, add global reference such as: function Test () {global $x; ...}

4, Static is used to save the value of the local variable, such as the variable in the function static $x = 0;

5, Echo can also output HTML tags, such as: echo "<br>";

6, Echo can output more than 1 strings; print can only output 1 strings at a time and return 1

7, Var_dump () returns the data type and value of the variable


PHP Basics 1

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.