Frequently asked questions about PHP

Source: Internet
Author: User
PHP FAQs

1. When both HTML and PHP scripts appear in a page, the PHP script should be placed in front of the HTML script. Otherwise, the PHP code is not recognized in HTML.

Like a simple calculator.


2. Interpreted language and compiled language. PHP language type? The difference between interpreted and compiled languages is whether the results of compilation are saved.

Execution process: read-in source code--lexical analysis---parsing-->opcode-> execution


3. Value passing and reference delivery occur whenever a pass-through is present.


The difference between 4.echo and Var_dump, Var_dump can print out the data type.


5.mysql-uroot-p


6. Recursion: Similar to finding all files under a folder (for understanding recursion). Different from iterations (equivalent to loops).


7. $stu 1 = new Stu; --No brackets
Var_dump ($stu 1);


8.php interacting with HTML? Inserting PHP code directly into the HTML.


9.return quite the import file. can also be used for function return.


What is the file location of the. Include? PHP and HTML differences, HTML lookup method of the request, can only be found in the root directory of the project, and PHP by default in Include_path search

You can also set its path. The path is equivalent to the file that executes the code.

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