Token
Less than 1 minute
Token
Wrapper around a token produced by token_get_all().
class TokenProperties
type
Token identifier, usually one of the T_* constants.
public int $typevalue
Raw token text value.
public mixed $valueline
Source line number where the token was found.
public int $lineMethods
__construct
Token constructor.
public __construct(array $tokenData): voidParameters
| Parameter | Type | Description |
|---|---|---|
$tokenData | array |
getName
Returns the PHP token constant name for this token type.
public getName(): stringGenerated by Hazaar API Doc Generator on Tue, 21 Apr 2026 04:00:25 +0000