array tokenizeString(
string
$string, string
$eolChar, int
$stackPtr)
Creates an array of tokens when given some PHP code.
Starts by using token_get_all() but does a lot of extra processing to insert information about the context of the token.
Parameters:
string
$string
—
The string to tokenize.
string
$eolChar
—
The EOL character to use for splitting strings.
int
$stackPtr
—
The position of the first token in the file.