[line 268]
Tokens that represent arithmetic operators.[line 213]
Tokens that represent assignments.[line 408]
Tokens that open code blocks.[line 395]
Tokens that perform boolean operations.[line 478]
Tokens that represent brackets and parenthesis.[line 282]
Tokens that represent casting.[line 437]
Tokens that are comments.[line 250]
Tokens that represent comparison operator.[line 420]
Tokens that don't represent code.[line 236]
Tokens that represent equality comparisons.[line 521]
Tokens that represent the names of called functions.Mostly, these are just strings. But PHP tokenizes some language constructs and functions using their own tokens.
[line 504]
Tokens that make up a heredoc string.[line 492]
Tokens that include files.[line 360]
Tokens that can prefix a method name[line 374]
Tokens that perform operations.[line 298]
Token types that open parenthesis.[line 349]
Tokens that represent scope modifiers.[line 317]
Tokens that are allowed to open scopes.[line 455]
Tokens that represent strings.Note that T_STRINGS are NOT represented in this list.
[line 465]
Tokens that represent text strings.[line 132]
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.