token_get_all()
token_get_all - Split given source into PHP tokens
Syntax
array token_get_all (
string $source)
Arguments
- source - The PHP source to parse.
Description
token_get_all() parses the given source string into PHP language tokens using the Zend engine's lexical scanner.
Version
PHP 4.2.0, 5
Return value
An array of token identifiers. Each individual token identifier is either a single character (i.e.: ;,., >, !, etc...), or a three element array containing the token index in element 0, the string content of the original token in element 1 and the line number in element 2.