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.