[line 291]
Tokens that represent arithmetic operators.[line 239]
Tokens that represent assignments.[line 430]
Tokens that open code blocks.[line 417]
Tokens that perform boolean operations.[line 487]
Tokens that represent brackets and parenthesis.[line 304]
Tokens that represent casting.[line 459]
Tokens that are comments.[line 275]
Tokens that represent comparison operator.[line 442]
Tokens that don't represent code.[line 261]
Tokens that represent equality comparisons.[line 530]
Tokens that represent the names of called functions.Mostly, these are just strings. But PHP tokeizes some language constructs and functions using their own tokens.
[line 513]
Tokens that make up a heredoc string.[line 501]
Tokens that include files.[line 382]
Tokens that can prefix a method name[line 396]
Tokens that perform operations.[line 320]
Token types that open parenthesis.[line 371]
Tokens that represent scope modifiers.[line 339]
Tokens that are allowed to open scopes.[line 477]
Tokens that represent strings.Note that T_STRINGS are NOT represented in this list.
[line 159]
The token weightings.int getHighestWeightedToken(
array
$tokens)
Tokens are weighted by their approximate frequency of appearance in code
Returns false if there are no weightings for any of the specified tokens.