php-doc-en/appendices/tokens.xml
Peter Cowburn d2b80e560f whitespace
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@336602 c90b9560-bf6c-de11-be94-00142212c4b1
2015-04-20 14:08:58 +00:00

824 lines
28 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<appendix xml:id="tokens" xmlns="http://docbook.org/ns/docbook">
<title>List of Parser Tokens</title>
<para>
Various parts of the PHP language are represented internally by types like
T_SR. PHP outputs identifiers like this one in parse errors, like
<literal>"Parse error: unexpected T_SR, expecting ',' or ';' in script.php on line 10."</literal>
</para>
<para>
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.
</para>
<note>
<title>Usage of T_* constants</title>
<para>
All tokens listed below are also defined as PHP constants. Their value is
automatically generated based on PHP's underlying parser infrastructure.
This means that the concrete value of a token may change between two PHP
versions. For example the <constant>T_FILE</constant> constant is
<literal>365</literal> in PHP 5.3, while the same value refers now to
<constant>T_TRAIT</constant> in PHP 5.4 and the value of <constant>T_FILE</constant>
is <literal>369</literal>. This means that your code should never rely directly
on the original T_* values taken from PHP version X.Y.Z, to provide some compatibility
across multiple PHP versions. Instead your code should utilize custom values
(using big numbers like <literal>10000</literal>) and an appropriate strategy that
will work with both PHP versions and T_* values.
</para>
</note>
<table>
<title>Tokens</title>
<tgroup cols="3">
<thead>
<row>
<entry>Token</entry>
<entry>Syntax</entry>
<entry>Reference</entry>
</row>
</thead>
<tbody>
<row>
<entry><constant>T_ABSTRACT</constant></entry>
<entry>abstract</entry>
<entry><xref linkend="language.oop5.abstract"/> (available since PHP 5.0.0)</entry>
</row>
<row>
<entry><constant>T_AND_EQUAL</constant></entry>
<entry>&amp;=</entry>
<entry><link linkend="language.operators.assignment">assignment
operators</link></entry>
</row>
<row>
<entry><constant>T_ARRAY</constant></entry>
<entry>array()</entry>
<entry><function>array</function>, <link
linkend="language.types.array.syntax">array syntax</link></entry>
</row>
<row>
<entry><constant>T_ARRAY_CAST</constant></entry>
<entry>(array)</entry>
<entry><link linkend="language.types.typecasting">type-casting</link></entry>
</row>
<row>
<entry><constant>T_AS</constant></entry>
<entry>as</entry>
<entry>&foreach;</entry>
</row>
<row>
<entry><constant>T_BAD_CHARACTER</constant></entry>
<entry></entry>
<entry>anything below ASCII 32 except \t (0x09), \n (0x0a) and \r (0x0d)</entry>
</row>
<row>
<entry><constant>T_BOOLEAN_AND</constant></entry>
<entry>&amp;&amp;</entry>
<entry><link linkend="language.operators.logical">logical operators</link></entry>
</row>
<row>
<entry><constant>T_BOOLEAN_OR</constant></entry>
<entry>||</entry>
<entry><link linkend="language.operators.logical">logical operators</link></entry>
</row>
<row>
<entry><constant>T_BOOL_CAST</constant></entry>
<entry>(bool) or (boolean)</entry>
<entry><link linkend="language.types.typecasting">type-casting</link></entry>
</row>
<row>
<entry><constant>T_BREAK</constant></entry>
<entry>break</entry>
<entry><link linkend="control-structures.break">break</link></entry>
</row>
<row>
<entry><constant>T_CALLABLE</constant></entry>
<entry>callable</entry>
<entry><link linkend="language.types.callable">callable</link></entry>
</row>
<row>
<entry><constant>T_CASE</constant></entry>
<entry>case</entry>
<entry><link linkend="control-structures.switch">switch</link></entry>
</row>
<row>
<entry><constant>T_CATCH</constant></entry>
<entry>catch</entry>
<entry><xref linkend="language.exceptions"/> (available since PHP 5.0.0)</entry>
</row>
<row>
<entry><constant>T_CHARACTER</constant></entry>
<entry></entry>
<entry>not used anymore</entry>
</row>
<row>
<entry><constant>T_CLASS</constant></entry>
<entry>class</entry>
<entry><link linkend="language.oop5">classes and objects</link></entry>
</row>
<row>
<entry><constant>T_CLASS_C</constant></entry>
<entry>__CLASS__</entry>
<entry>
<link linkend="language.constants.predefined">magic constants</link>
</entry>
</row>
<row>
<entry><constant>T_CLONE</constant></entry>
<entry>clone</entry>
<entry>
<link linkend="language.oop5">classes and objects</link>
</entry>
</row>
<row>
<entry><constant>T_CLOSE_TAG</constant></entry>
<entry>?&gt; or %&gt;</entry>
<entry><link linkend="language.basic-syntax.phpmode">escaping
from HTML</link></entry>
</row>
<row>
<entry><constant>T_COMMENT</constant></entry>
<entry>// or #, and /* */</entry>
<entry><link linkend="language.basic-syntax.comments">comments</link></entry>
</row>
<row>
<entry><constant>T_CONCAT_EQUAL</constant></entry>
<entry>.=</entry>
<entry><link linkend="language.operators.assignment">assignment
operators</link></entry>
</row>
<row>
<entry><constant>T_CONST</constant></entry>
<entry>const</entry>
<entry><link linkend="language.constants">class constants</link></entry>
</row>
<row>
<entry><constant>T_CONSTANT_ENCAPSED_STRING</constant></entry>
<entry>"foo" or 'bar'</entry>
<entry><link linkend="language.types.string.syntax">string syntax</link></entry>
</row>
<row>
<entry><constant>T_CONTINUE</constant></entry>
<entry>continue</entry>
<entry><link linkend="control-structures.continue">continue</link></entry>
</row>
<row>
<entry><constant>T_CURLY_OPEN</constant></entry>
<entry>{$</entry>
<entry><link linkend="language.types.string.parsing.complex">complex
variable parsed syntax</link></entry>
</row>
<row>
<entry><constant>T_DEC</constant></entry>
<entry>--</entry>
<entry><link
linkend="language.operators.increment">incrementing/decrementing
operators</link></entry>
</row>
<row>
<entry><constant>T_DECLARE</constant></entry>
<entry>declare</entry>
<entry><link linkend="control-structures.declare">declare</link></entry>
</row>
<row>
<entry><constant>T_DEFAULT</constant></entry>
<entry>default</entry>
<entry><link linkend="control-structures.switch">switch</link></entry>
</row>
<row>
<entry><constant>T_DIR</constant></entry>
<entry>__DIR__</entry>
<entry><link linkend="language.constants.predefined">magic constants</link> (available
since PHP 5.3.0)</entry>
</row>
<row>
<entry><constant>T_DIV_EQUAL</constant></entry>
<entry>/=</entry>
<entry><link linkend="language.operators.assignment">assignment
operators</link></entry>
</row>
<row>
<entry><constant>T_DNUMBER</constant></entry>
<entry>0.12, etc.</entry>
<entry><link linkend="language.types.float">floating point numbers</link></entry>
</row>
<row>
<entry><constant>T_DOC_COMMENT</constant></entry>
<entry>/** */</entry>
<entry>
<link linkend="language.basic-syntax.comments">PHPDoc style comments</link>
</entry>
</row>
<row>
<entry><constant>T_DO</constant></entry>
<entry>do</entry>
<entry><link linkend="control-structures.do.while">do..while</link></entry>
</row>
<row>
<entry><constant>T_DOLLAR_OPEN_CURLY_BRACES</constant></entry>
<entry>${</entry>
<entry><link linkend="language.types.string.parsing.complex">complex
variable parsed syntax</link></entry>
</row>
<row>
<entry><constant>T_DOUBLE_ARROW</constant></entry>
<entry>=&gt;</entry>
<entry><link linkend="language.types.array.syntax">array syntax</link></entry>
</row>
<row>
<entry><constant>T_DOUBLE_CAST</constant></entry>
<entry>(real), (double) or (float)</entry>
<entry><link linkend="language.types.typecasting">type-casting</link></entry>
</row>
<row>
<entry><constant>T_DOUBLE_COLON</constant></entry>
<entry>::</entry>
<entry>see <constant>T_PAAMAYIM_NEKUDOTAYIM</constant> below</entry>
</row>
<row>
<entry><constant>T_ECHO</constant></entry>
<entry>echo</entry>
<entry><function>echo</function></entry>
</row>
<row>
<entry><constant>T_ELLIPSIS</constant></entry>
<entry>...</entry>
<entry>
<link linkend="functions.variable-arg-list.new">function arguments</link>
(available since PHP 5.6.0)
</entry>
</row>
<row>
<entry><constant>T_ELSE</constant></entry>
<entry>else</entry>
<entry><link linkend="control-structures.else">else</link></entry>
</row>
<row>
<entry><constant>T_ELSEIF</constant></entry>
<entry>elseif</entry>
<entry><link linkend="control-structures.elseif">elseif</link></entry>
</row>
<row>
<entry><constant>T_EMPTY</constant></entry>
<entry>empty</entry>
<entry><function>empty</function></entry>
</row>
<row>
<entry><constant>T_ENCAPSED_AND_WHITESPACE</constant></entry>
<entry>" $a"</entry>
<entry><link linkend="language.types.string.parsing">constant part of
string with variables</link></entry>
</row>
<row>
<entry><constant>T_ENDDECLARE</constant></entry>
<entry>enddeclare</entry>
<entry><link linkend="control-structures.declare">declare</link>, <link
linkend="control-structures.alternative-syntax">alternative syntax</link></entry>
</row>
<row>
<entry><constant>T_ENDFOR</constant></entry>
<entry>endfor</entry>
<entry><link linkend="control-structures.for">for</link>, <link
linkend="control-structures.alternative-syntax">alternative syntax</link></entry>
</row>
<row>
<entry><constant>T_ENDFOREACH</constant></entry>
<entry>endforeach</entry>
<entry>&foreach;, <link
linkend="control-structures.alternative-syntax">alternative syntax</link></entry>
</row>
<row>
<entry><constant>T_ENDIF</constant></entry>
<entry>endif</entry>
<entry><link linkend="control-structures.if">if</link>, <link
linkend="control-structures.alternative-syntax">alternative syntax</link></entry>
</row>
<row>
<entry><constant>T_ENDSWITCH</constant></entry>
<entry>endswitch</entry>
<entry><link linkend="control-structures.switch">switch</link>, <link
linkend="control-structures.alternative-syntax">alternative syntax</link></entry>
</row>
<row>
<entry><constant>T_ENDWHILE</constant></entry>
<entry>endwhile</entry>
<entry><link linkend="control-structures.while">while</link>, <link
linkend="control-structures.alternative-syntax">alternative syntax</link></entry>
</row>
<row>
<entry><constant>T_END_HEREDOC</constant></entry>
<entry></entry>
<entry><link linkend="language.types.string.syntax.heredoc">heredoc
syntax</link></entry>
</row>
<row>
<entry><constant>T_EVAL</constant></entry>
<entry>eval()</entry>
<entry><function>eval</function></entry>
</row>
<row>
<entry><constant>T_EXIT</constant></entry>
<entry>exit or die</entry>
<entry><function>exit</function>, <function>die</function></entry>
</row>
<row>
<entry><constant>T_EXTENDS</constant></entry>
<entry>extends</entry>
<entry><link linkend="language.oop5.basic.extends">extends</link>, <link
linkend="language.oop5">classes and objects</link></entry>
</row>
<row>
<entry><constant>T_FILE</constant></entry>
<entry>__FILE__</entry>
<entry><link linkend="language.constants.predefined">magic constants</link></entry>
</row>
<row>
<entry><constant>T_FINAL</constant></entry>
<entry>final</entry>
<entry><xref linkend="language.oop5.final"/></entry>
</row>
<row>
<entry><constant>T_FINALLY</constant></entry>
<entry>finally</entry>
<entry><xref linkend="language.exceptions"/> (available since PHP 5.5.0)</entry>
</row>
<row>
<entry><constant>T_FOR</constant></entry>
<entry>for</entry>
<entry><link linkend="control-structures.for">for</link></entry>
</row>
<row>
<entry><constant>T_FOREACH</constant></entry>
<entry>foreach</entry>
<entry>&foreach;</entry>
</row>
<row>
<entry><constant>T_FUNCTION</constant></entry>
<entry>function or cfunction</entry>
<entry><link linkend="language.functions">functions</link></entry>
</row>
<row>
<entry><constant>T_FUNC_C</constant></entry>
<entry>__FUNCTION__</entry>
<entry>
<link linkend="language.constants.predefined">magic constants</link>
</entry>
</row>
<row>
<entry><constant>T_GLOBAL</constant></entry>
<entry>global</entry>
<entry><link linkend="language.variables.scope">variable scope</link></entry>
</row>
<row>
<entry><constant>T_GOTO</constant></entry>
<entry>goto</entry>
<entry><link linkend="control-structures.goto"> (available since PHP 5.3.0)</link></entry>
</row>
<row>
<entry><constant>T_HALT_COMPILER</constant></entry>
<entry>__halt_compiler()</entry>
<entry><xref linkend="function.halt-compiler"/> (available since PHP 5.1.0)</entry>
</row>
<row>
<entry><constant>T_IF</constant></entry>
<entry>if</entry>
<entry><link linkend="control-structures.if">if</link></entry>
</row>
<row>
<entry><constant>T_IMPLEMENTS</constant></entry>
<entry>implements</entry>
<entry><xref linkend="language.oop5.interfaces"/></entry>
</row>
<row>
<entry><constant>T_INC</constant></entry>
<entry>++</entry>
<entry><link
linkend="language.operators.increment">incrementing/decrementing
operators</link></entry>
</row>
<row>
<entry><constant>T_INCLUDE</constant></entry>
<entry>include()</entry>
<entry><function>include</function></entry>
</row>
<row>
<entry><constant>T_INCLUDE_ONCE</constant></entry>
<entry>include_once()</entry>
<entry><function>include_once</function></entry>
</row>
<row>
<entry><constant>T_INLINE_HTML</constant></entry>
<entry></entry>
<entry><link linkend="language.basic-syntax.phpmode">text outside PHP</link></entry>
</row>
<row>
<entry><constant>T_INSTANCEOF</constant></entry>
<entry>instanceof</entry>
<entry>
<link linkend="language.operators.type">type operators</link>
</entry>
</row>
<row>
<entry><constant>T_INSTEADOF</constant></entry>
<entry>insteadof</entry>
<entry><xref linkend="language.oop5.traits"/> (available since PHP 5.4.0)</entry>
</row>
<row>
<entry><constant>T_INT_CAST</constant></entry>
<entry>(int) or (integer)</entry>
<entry><link linkend="language.types.typecasting">type-casting</link></entry>
</row>
<row>
<entry><constant>T_INTERFACE</constant></entry>
<entry>interface</entry>
<entry><xref linkend="language.oop5.interfaces"/></entry>
</row>
<row>
<entry><constant>T_ISSET</constant></entry>
<entry>isset()</entry>
<entry><function>isset</function></entry>
</row>
<row>
<entry><constant>T_IS_EQUAL</constant></entry>
<entry>==</entry>
<entry><link linkend="language.operators.comparison">comparison operators</link></entry>
</row>
<row>
<entry><constant>T_IS_GREATER_OR_EQUAL</constant></entry>
<entry>&gt;=</entry>
<entry><link linkend="language.operators.comparison">comparison operators</link></entry>
</row>
<row>
<entry><constant>T_IS_IDENTICAL</constant></entry>
<entry>===</entry>
<entry><link linkend="language.operators.comparison">comparison operators</link></entry>
</row>
<row>
<entry><constant>T_IS_NOT_EQUAL</constant></entry>
<entry>!= or &lt;&gt;</entry>
<entry><link linkend="language.operators.comparison">comparison operators</link></entry>
</row>
<row>
<entry><constant>T_IS_NOT_IDENTICAL</constant></entry>
<entry>!==</entry>
<entry><link linkend="language.operators.comparison">comparison operators</link></entry>
</row>
<row>
<entry><constant>T_IS_SMALLER_OR_EQUAL</constant></entry>
<entry>&lt;=</entry>
<entry><link linkend="language.operators.comparison">comparison operators</link></entry>
</row>
<row>
<entry><constant>T_SPACESHIP</constant></entry>
<entry>&lt;=&gt;</entry>
<entry>
<link linkend="language.operators.comparison">comparison operators</link>
(available since PHP 7.0.0)
</entry>
</row>
<row>
<entry><constant>T_LINE</constant></entry>
<entry>__LINE__</entry>
<entry><link linkend="language.constants.predefined">magic constants</link></entry>
</row>
<row>
<entry><constant>T_LIST</constant></entry>
<entry>list()</entry>
<entry><function>list</function></entry>
</row>
<row>
<entry><constant>T_LNUMBER</constant></entry>
<entry>123, 012, 0x1ac, etc.</entry>
<entry><link linkend="language.types.integer">integers</link></entry>
</row>
<row>
<entry><constant>T_LOGICAL_AND</constant></entry>
<entry>and</entry>
<entry><link linkend="language.operators.logical">logical operators</link></entry>
</row>
<row>
<entry><constant>T_LOGICAL_OR</constant></entry>
<entry>or</entry>
<entry><link linkend="language.operators.logical">logical operators</link></entry>
</row>
<row>
<entry><constant>T_LOGICAL_XOR</constant></entry>
<entry>xor</entry>
<entry><link linkend="language.operators.logical">logical operators</link></entry>
</row>
<row>
<entry><constant>T_METHOD_C</constant></entry>
<entry>__METHOD__</entry>
<entry>
<link linkend="language.constants.predefined">magic constants</link>
</entry>
</row>
<row>
<entry><constant>T_MINUS_EQUAL</constant></entry>
<entry>-=</entry>
<entry><link linkend="language.operators.assignment">assignment
operators</link></entry>
</row>
<row>
<entry><constant>T_MOD_EQUAL</constant></entry>
<entry>%=</entry>
<entry><link linkend="language.operators.assignment">assignment
operators</link></entry>
</row>
<row>
<entry><constant>T_MUL_EQUAL</constant></entry>
<entry>*=</entry>
<entry><link linkend="language.operators.assignment">assignment
operators</link></entry>
</row>
<row>
<entry><constant>T_NAMESPACE</constant></entry>
<entry>namespace</entry>
<entry>
<link linkend="language.namespaces">namespaces</link> (available since PHP
5.3.0)
</entry>
</row>
<row>
<entry><constant>T_NS_C</constant></entry>
<entry>__NAMESPACE__</entry>
<entry>
<link linkend="language.namespaces">namespaces</link>
(available since PHP 5.3.0)
</entry>
</row>
<row>
<entry><constant>T_NS_SEPARATOR</constant></entry>
<entry>\</entry>
<entry>
<link linkend="language.namespaces">namespaces</link>
(available since PHP 5.3.0)
</entry>
</row>
<row>
<entry><constant>T_NEW</constant></entry>
<entry>new</entry>
<entry><link linkend="language.oop5">classes and objects</link></entry>
</row>
<row>
<entry><constant>T_NUM_STRING</constant></entry>
<entry>"$a[0]"</entry>
<entry><link linkend="language.types.string.parsing">numeric array index
inside string</link></entry>
</row>
<row>
<entry><constant>T_OBJECT_CAST</constant></entry>
<entry>(object)</entry>
<entry><link linkend="language.types.typecasting">type-casting</link></entry>
</row>
<row>
<entry><constant>T_OBJECT_OPERATOR</constant></entry>
<entry>-&gt;</entry>
<entry><link linkend="language.oop5">classes and objects</link></entry>
</row>
<row>
<entry><constant>T_OPEN_TAG</constant></entry>
<entry>&lt;?php, &lt;? or &lt;%</entry>
<entry><link linkend="language.basic-syntax.phpmode">escaping
from HTML</link></entry>
</row>
<row>
<entry><constant>T_OPEN_TAG_WITH_ECHO</constant></entry>
<entry>&lt;?= or &lt;%=</entry>
<entry><link linkend="language.basic-syntax.phpmode">escaping
from HTML</link></entry>
</row>
<row>
<entry><constant>T_OR_EQUAL</constant></entry>
<entry>|=</entry>
<entry><link linkend="language.operators.assignment">assignment
operators</link></entry>
</row>
<row>
<entry><constant>T_PAAMAYIM_NEKUDOTAYIM</constant></entry>
<entry>::</entry>
<entry><link linkend="language.oop5.paamayim-nekudotayim">::</link>. Also defined as
<constant>T_DOUBLE_COLON</constant>.</entry>
</row>
<row>
<entry><constant>T_PLUS_EQUAL</constant></entry>
<entry>+=</entry>
<entry><link linkend="language.operators.assignment">assignment
operators</link></entry>
</row>
<row>
<entry><constant>T_POW</constant></entry>
<entry>**</entry>
<entry>
<link linkend="language.operators.arithmetic">arithmetic operators</link>
(available since PHP 5.6.0)
</entry>
</row>
<row>
<entry><constant>T_POW_EQUAL</constant></entry>
<entry>**=</entry>
<entry>
<link linkend="language.operators.assignment">assignment operators</link>
(available since PHP 5.6.0)
</entry>
</row>
<row>
<entry><constant>T_PRINT</constant></entry>
<entry>print()</entry>
<entry><function>print</function></entry>
</row>
<row>
<entry><constant>T_PRIVATE</constant></entry>
<entry>private</entry>
<entry>
<link linkend="language.oop5">classes and objects</link>
</entry>
</row>
<row>
<entry><constant>T_PUBLIC</constant></entry>
<entry>public</entry>
<entry>
<link linkend="language.oop5">classes and objects</link>
</entry>
</row>
<row>
<entry><constant>T_PROTECTED</constant></entry>
<entry>protected</entry>
<entry>
<link linkend="language.oop5">classes and objects</link>
</entry>
</row>
<row>
<entry><constant>T_REQUIRE</constant></entry>
<entry>require()</entry>
<entry><function>require</function></entry>
</row>
<row>
<entry><constant>T_REQUIRE_ONCE</constant></entry>
<entry>require_once()</entry>
<entry><function>require_once</function></entry>
</row>
<row>
<entry><constant>T_RETURN</constant></entry>
<entry>return</entry>
<entry><link linkend="functions.returning-values">returning values</link></entry>
</row>
<row>
<entry><constant>T_SL</constant></entry>
<entry>&lt;&lt;</entry>
<entry><link linkend="language.operators.bitwise">bitwise
operators</link></entry>
</row>
<row>
<entry><constant>T_SL_EQUAL</constant></entry>
<entry>&lt;&lt;=</entry>
<entry><link linkend="language.operators.assignment">assignment
operators</link></entry>
</row>
<row>
<entry><constant>T_SR</constant></entry>
<entry>&gt;&gt;</entry>
<entry><link linkend="language.operators.bitwise">bitwise
operators</link></entry>
</row>
<row>
<entry><constant>T_SR_EQUAL</constant></entry>
<entry>&gt;&gt;=</entry>
<entry><link linkend="language.operators.assignment">assignment
operators</link></entry>
</row>
<row>
<entry><constant>T_START_HEREDOC</constant></entry>
<entry>&lt;&lt;&lt;</entry>
<entry><link linkend="language.types.string.syntax.heredoc">heredoc
syntax</link></entry>
</row>
<row>
<entry><constant>T_STATIC</constant></entry>
<entry>static</entry>
<entry><link linkend="language.variables.scope">variable scope</link></entry>
</row>
<row>
<entry><constant>T_STRING</constant></entry>
<entry>parent, self, etc.</entry>
<entry>
identifiers, e.g. keywords like <literal>parent</literal> and <literal>self</literal>,
function names, class names and more are matched.
See also <constant>T_CONSTANT_ENCAPSED_STRING</constant>.
</entry>
</row>
<row>
<entry><constant>T_STRING_CAST</constant></entry>
<entry>(string)</entry>
<entry><link linkend="language.types.typecasting">type-casting</link></entry>
</row>
<row>
<entry><constant>T_STRING_VARNAME</constant></entry>
<entry>"${a</entry>
<entry><link linkend="language.types.string.parsing.complex">complex
variable parsed syntax</link></entry>
</row>
<row>
<entry><constant>T_SWITCH</constant></entry>
<entry>switch</entry>
<entry><link linkend="control-structures.switch">switch</link></entry>
</row>
<row>
<entry><constant>T_THROW</constant></entry>
<entry>throw</entry>
<entry><xref linkend="language.exceptions"/></entry>
</row>
<row>
<entry><constant>T_TRAIT</constant></entry>
<entry>trait</entry>
<entry><xref linkend="language.oop5.traits"/> (available since PHP 5.4.0)</entry>
</row>
<row>
<entry><constant>T_TRAIT_C</constant></entry>
<entry>__TRAIT__</entry>
<entry><link linkend="constant.trait">__TRAIT__</link> (available since PHP 5.4.0)</entry>
</row>
<row>
<entry><constant>T_TRY</constant></entry>
<entry>try</entry>
<entry><xref linkend="language.exceptions"/></entry>
</row>
<row>
<entry><constant>T_UNSET</constant></entry>
<entry>unset()</entry>
<entry><function>unset</function></entry>
</row>
<row>
<entry><constant>T_UNSET_CAST</constant></entry>
<entry>(unset)</entry>
<entry><link linkend="language.types.typecasting">type-casting</link></entry>
</row>
<row>
<entry><constant>T_USE</constant></entry>
<entry>use</entry>
<entry><link linkend="language.namespaces">namespaces</link>
(available since PHP 5.3.0; reserved since PHP 4.0.0)</entry>
</row>
<row>
<entry><constant>T_VAR</constant></entry>
<entry>var</entry>
<entry><link linkend="language.oop5">classes and objects</link></entry>
</row>
<row>
<entry><constant>T_VARIABLE</constant></entry>
<entry>$foo</entry>
<entry><link linkend="language.variables">variables</link></entry>
</row>
<row>
<entry><constant>T_WHILE</constant></entry>
<entry>while</entry>
<entry><link linkend="control-structures.while">while</link>, <link
linkend="control-structures.do.while">do..while</link></entry>
</row>
<row>
<entry><constant>T_WHITESPACE</constant></entry>
<entry>\t \r\n</entry>
<entry></entry>
</row>
<row>
<entry><constant>T_XOR_EQUAL</constant></entry>
<entry>^=</entry>
<entry><link linkend="language.operators.assignment">assignment
operators</link></entry>
</row>
<row>
<entry><constant>T_YIELD</constant></entry>
<entry>yield</entry>
<entry><link linkend="control-structures.yield">generators</link> (available since PHP 5.5.0)</entry>
</row>
</tbody>
</tgroup>
</table>
<para>
See also <function>token_name</function>.
</para>
</appendix>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->