Copied!

A PHP token. On PHP 8.0 this extends from PhpToken.

CloneableInstantiable
Properties
public int PhpToken::$id
public int PhpToken::$line
public int PhpToken::$pos
public string PhpToken::$text
Methods
public final PhpToken::__construct(int $id, string $text, int $line = -1, int $pos = -1)
public PhpToken::__toString() : string
public getEndLine() : int
 

Get 1-based end line number of the token.

public getEndPos() : int
 

Get (exclusive) zero-based end position of the token.

public PhpToken::getTokenName() : ?string
public PhpToken::is( $kind) : bool
public PhpToken::isIgnorable() : bool
public static PhpToken::tokenize(string $code, int $flags = 0) : array
Methods
public static PhpToken::tokenize(string $code, int $flags = 0) : array
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration