PHP. Руководство по PHP. 2005
token_get_all

token_get_all
Описание
array token_get_all (string source)
token_get_all() parses the given source string into PHP language tokens using the Zend engine's lexical scanner.
For a list of parser tokens, see Прил. Q, or use token_name() to translate a token value into its string representation.
Список параметров
- source
-
The PHP source to parse.
Возвращаемые значения
An array of token identifiers. Each individual token identifier is either a single character (i.e.: ;, ., >, !, etc...), or a two element array containing the token index in element 0, and the string content of the original token in element 1.
Примеры

![]() | ||
|
Отвечу на любые вопросы. С уважением, Дмитрий Владимирович.
⇪