PHP Execution Process
The source code computer in any language has no way to execute directly, and it needs to be converted into machine instructions that the computer can recognize.
PHP is also a high-level language and needs to be compiled (explained)
The parsing process for PHP:
1, the request source code, carries on the lexical parsing, the grammar parsing.
Lexical analysis, the main source code in the word to read, judge, lexical analysis, if there are errors, will error. Compilation error.
Grammar parsing, the main judge of grammatical structure is correct. For example, whether the process control structure is complete.
Result: Executable machine code
2, execution, execution is mainly the operation of the memory, execution may also occur error, error property execution error.
Result: pure HTML code.
Graphic:
The above describes the PHP implementation process, including the content of PHP, I hope to be interested in PHP tutorial friends helpful.