PhpToken::__construct

(PHP 8)

PhpToken::__constructReturns a new PhpToken object

Descrierea

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

Returns a new PhpToken object

Parametri

id

One of the T_* constants (see Lista semnelor interpretorului), 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.

Valorile întoarse

Returns a new PhpToken instance.

A se vedea și

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top