PHP - Manual: PhpToken::__construct
2024-11-12
(PHP 8)
PhpToken::__construct — Returns a new PhpToken object
$id
,$text
,$line
= -1,$pos
= -1Returns a new PhpToken object
id
One of the T_* constants (see 解析器代号列表), or an ASCII codepoint representing a single-char token.
text
The textual content of the token.
line
The starting line number (1-based) of the token.
pos
The starting position (0-based) in the tokenized string.