PHP Basic Usage

Source: Internet
Author: User
1. Use commas to link data to echo $num. "
";

2. Weakly typed function foo ($var 1, $var 2) {}

Function tool (& $var 1,& $var 3) {} operable external variables

Declaring a function, you can use it directly below

3. The difference between "and" ", the single quotation mark does not parse the variable, only is the character.

4. $dir =opendir ("image"); $file =readdir ($dir); Echo $file;

5. include the file under the current directory, if it is HTML display HTML, is txt display txt, is PHP, parsing php

6. include only one time

7.require static include: For example, the tail contains a relatively fixed

Include dynamic include: is in the structure of the function can be included, for example: include "Image/temp.txt";

8. Use '

'     '/
'  can show some of the original formatting

9.var_dump and Print_r Hava the same function, but Var_dum would give the varible information

10.

  • 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.