Tokenizer
- 簡介
- 安裝/配置
- 預定義常量
- 範例
- PhpToken — The PhpToken class
- PhpToken::__construct — Returns a new PhpToken object
- PhpToken::getTokenName — Returns the name of the token.
- PhpToken::is — Tells whether the token is of given kind.
- PhpToken::isIgnorable — Tells whether the token would be ignored by the PHP parser.
- PhpToken::__toString — Returns the textual content of the token.
- PhpToken::tokenize — Splits given source into PHP tokens, represented by PhpToken objects.
- Tokenizer 函式
- token_get_all — 將提供的原始碼按 PHP 標記進行分割
- token_name — 獲取提供的 PHP 解析器代號的符號名稱