php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
tokenizer.stub.php
Go to the documentation of this file.
1<?php
2
4
9const TOKEN_PARSE = UNKNOWN;
10
11function token_get_all(string $code, int $flags = 0): array {}
12
13function token_name(int $id): string {}
14
15class PhpToken implements Stringable
16{
17 public int $id;
18 public string $text;
19 public int $line;
20 public int $pos;
21
23 public static function tokenize(string $code, int $flags = 0): array {}
24
25 final public function __construct(int $id, string $text, int $line = -1, int $pos = -1) {}
26
28 public function is($kind): bool {}
29
30 public function isIgnorable(): bool {}
31
32 public function getTokenName(): ?string {}
33
34 public function __toString(): string {}
35}
__construct(int $id, string $text, int $line=-1, int $pos=-1)
static tokenize(string $code, int $flags=0)
#define TOKEN_PARSE
token_name(int $id)
token_get_all(string $code, int $flags=0)
function(EX_VAR(opline->result.var))