(PHP 8)
PhpToken::__construct — Returns a new PhpToken object
Returns a new PhpToken object
idOne of the T_* constants (see List of Parser 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).
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/phptoken.construct.php