PHP Manual
Function Reference
Other Basic Extensions
GeoIP
FANN
Igbinary
JSON
Simdjson
Lua
LuaSandbox
Misc.
Random
Seaslog
SPL
Streams
Swoole
Tidy
Tokenizer
URLs
V8js
Yaml
Yaf
Yaconf
Taint
Data Structures
var_representation
tidy_warning_count
Introduction
Other Basic Extensions
PHP Manual
Tokenizer
Table of Contents
Introduction
Installing/Configuring
Installation
Predefined Constants
Examples
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 Functions
token_get_all
— Split given source into PHP tokens
token_name
— Get the symbolic name of a given PHP token