« tidy_warning_count
Introduction »
PHP Manual
Other Basic Extensions
Tokenizer
Tokenizer
Introduction
Installing/Configuring
Requirements
Installation
Runtime Configuration
Resource Types
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