What is the Lexing stage in PHP
By Dillon Smart · · · 1 Comments
Lexing is a phase the PHP interpreter undergoes while interpreting the source code written.
Lexing, is the first of four overall steps performed by the PHP interpreter.
Steps in the PHP Interpreter
The PHP interpreter undergoes a total of four steps before executing the code written.
- Lexing
- Parsing
- Compilation
- Interpretation
What is Lexing in PHP
Lexical analysis, also known as tokenizing, it is a phase that consists of converting a string of characters from source code written in PHP into a sequence of tokens that describe what each subsequent encountered value means.
1 Comment
PHP Numeric Literal Separator - IKnowThatNow
[…] I wrote an post which explains more about the Lexing stage in PHP. […]