略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: PhpToken::__construct

2024-05-01

PhpToken::__construct

(PHP 8)

PhpToken::__constructReturns a new PhpToken object

说明

final public PhpToken::__construct(
    int $id,
    string $text,
    int $line = -1,
    int $pos = -1
)

Returns 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.

参见

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/phptoken.construct.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3