List of Parser Tokens
Various parts of the PHP language are represented internally by types like
- T_SR. PHP outputs identifiers like this one in parse errors, like
+ T_SR. PHP outputs identifiers like this one in parse errors, like
"Parse error: unexpected T_SR, expecting ',' or ';' in script.php on line 10."
- You're supposed to know what T_SR means. For everybody who doesn't
- know that, here is a table with those identifiers, PHP-syntax and
+ You're supposed to know what T_SR means. For everybody who doesn't
+ know that, here is a table with those identifiers, PHP-syntax and
references to the appropriate places in the manual.
-
+
Usage of T_* constants
@@ -29,8 +29,8 @@
(using big numbers like 10000) and an appropriate strategy that
will work with both PHP versions and T_* values.
-
-
+
+
Tokens
@@ -686,10 +686,10 @@
T_STRING
- "parent"
+ parent, true etc.
- identifiers, e.g. strings,
- object oriented keywords like parent and self,
+ identifiers, e.g. strings,
+ object oriented keywords like parent and self,
functions, classes and more are matched.
@@ -773,7 +773,7 @@
assignment
operators
-
+