PhpToken::__construct
(PHP 8)
PhpToken::__construct — Returns a new PhpToken object
说明
Returns a new PhpToken object
参数
id
-
One of the T_* constants (see 解析器记号(token)列表), 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 (the number of bytes).
参见
- PhpToken::tokenize() - Splits given source into PHP tokens, represented by PhpToken objects.
+添加备注
用户贡献的备注
此页面尚无用户贡献的备注。