PhpToken::__construct
PHP function
Edit on GitHub ✎
(PHP 8)
Returns a new PhpToken object
Description
PhpToken::__construct(int $id, string $text, int $line = -1, int $pos = -1)
Returns a new PhpToken object
Parameters
idOne of the T_* constants (see tokens), or an ASCII codepoint representing a single-char token.
textThe textual content of the token.
lineThe starting line number (1-based) of the token.
posThe starting position (0-based) in the tokenized string (the number of bytes).