PHP ���ԵIJ�ͬ�������ڲ�����ʾΪ���� T_SR �����͡�PHP �ڽ�������ʱ��������ı�ʶ�������� "Parse error: unexpected T_SR, expecting ',' or ';' in script.php on line 10."��
Ӧ��֪�� T_SR �ĺ��塣�������в�֪�����ˣ��±��г�����Щ��ʶ����PHP ������ֲ����ʵ�λ�õIJο���
���� | � | �ο� |
---|---|---|
T_ABSTRACT | abstract | ���������� PHP 5.0.0 ����ã� |
T_AND_EQUAL | &= | ��ֵ����� |
T_ARRAY | array() | array()������� |
T_ARRAY_CAST | (array) | ����ת�� |
T_AS | as | foreach |
T_BAD_CHARACTER | �� ASCII 32 ֮ǰ���� \t (0x09), \n (0x0a) �� \r (0x0d) ������κ��ַ� | |
T_BOOLEAN_AND | && | ������� |
T_BOOLEAN_OR | || | ������� |
T_BOOL_CAST | (bool) �� (boolean) | ����ת�� |
T_BREAK | break | break |
T_CASE | case | switch |
T_CATCH | catch | �쳣�������� PHP 5.0.0 ����ã� |
T_CHARACTER | ||
T_CLASS | class | ��Ͷ��� |
T_CLONE | clone | ��Ͷ����������� PHP 5�� |
T_CLOSE_TAG | ?> �� %> | |
T_COMMENT | // �� #���Լ� PHP 5 �µ� /* */ | ע�� |
T_CONCAT_EQUAL | .= | ��ֵ����� |
T_CONST | const | |
T_CONSTANT_ENCAPSED_STRING | "foo" �� 'bar' | �ַ���� |
T_CONTINUE | continue | |
T_CURLY_OPEN | ||
T_DEC | -- | ����/�ݼ������ |
T_DECLARE | declare | declare |
T_DEFAULT | default | switch |
T_DIV_EQUAL | /= | ��ֵ����� |
T_DNUMBER | 0.12���ȵ� | ������ |
T_DOC_COMMENT | /** */ | PHPDoc ����ע���������� PHP 5�� |
T_DO | do | do..while |
T_DOLLAR_OPEN_CURLY_BRACES | ${ | ���ӱ�������� |
T_DOUBLE_ARROW | => | ����� |
T_DOUBLE_CAST | (real), (double) �� (float) | ����ת�� |
T_DOUBLE_COLON | :: | ������� T_PAAMAYIM_NEKUDOTAYIM |
T_ECHO | echo | echo |
T_ELSE | else | else |
T_ELSEIF | elseif | elseif |
T_EMPTY | empty | empty() |
T_ENCAPSED_AND_WHITESPACE | ||
T_ENDDECLARE | enddeclare | declare������ |
T_ENDFOR | endfor | for������ |
T_ENDFOREACH | endforeach | foreach������ |
T_ENDIF | endif | if������ |
T_ENDSWITCH | endswitch | switch������ |
T_ENDWHILE | endwhile | while������ |
T_END_HEREDOC | heredoc � | |
T_EVAL | eval() | eval() |
T_EXIT | exit �� die | exit(), die() |
T_EXTENDS | extends | extends����Ͷ��� |
T_FILE | __FILE__ | ���� |
T_FINAL | final | Final �ؼ������� PHP 5.0.0 ����ã� |
T_FOR | for | for |
T_FOREACH | foreach | foreach |
T_FUNCTION | function �� cfunction | ���� |
T_GLOBAL | global | ������Χ |
T_HALT_COMPILER | __halt_compiler() | __halt_compiler���� PHP 5.1.0 ����ã� |
T_IF | if | if |
T_IMPLEMENTS | implements | ����ӿ����� PHP 5.0.0 ����ã� |
T_INC | ++ | �������ݼ������ |
T_INCLUDE | include() | include |
T_INCLUDE_ONCE | include_once() | include_once |
T_INLINE_HTML | ||
T_INSTANCEOF | instanceof | type operators���� PHP5�� |
T_INT_CAST | (int) �� (integer) | ����ת�� |
T_INTERFACE | interface | ����ӿ����� PHP 5.0.0 ����ã� |
T_ISSET | isset() | isset() |
T_IS_EQUAL | == | �Ƚ������ |
T_IS_GREATER_OR_EQUAL | >= | �Ƚ������ |
T_IS_IDENTICAL | === | �Ƚ������ |
T_IS_NOT_EQUAL | != or <> | �Ƚ������ |
T_IS_NOT_IDENTICAL | !== | �Ƚ������ |
T_IS_SMALLER_OR_EQUAL | <= | �Ƚ������ |
T_LINE | __LINE__ | ���� |
T_LIST | list() | list() |
T_LNUMBER | 123��012��0x1ac���ȵ� | ���� |
T_LOGICAL_AND | and | ������� |
T_LOGICAL_OR | or | ������� |
T_LOGICAL_XOR | xor | ������� |
T_MINUS_EQUAL | -= | ��ֵ����� |
T_ML_COMMENT | /* �� */ | ע���������� PHP 4�� |
T_MOD_EQUAL | %= | ��ֵ����� |
T_MUL_EQUAL | *= | ��ֵ����� |
T_NEW | new | ��Ͷ��� |
T_NUM_STRING | ||
T_OBJECT_CAST | (object) | ����ת�� |
T_OBJECT_OPERATOR | -> | ��Ͷ��� |
T_OPEN_TAG | <?php, <? �� <% | �� HTML ת�� |
T_OPEN_TAG_WITH_ECHO | <?= or <%= | �� HTML ת�� |
T_OR_EQUAL | |= | ��ֵ����� |
T_PAAMAYIM_NEKUDOTAYIM | :: | ::��Ҳ����Ϊ
T_DOUBLE_COLON �� |
T_PLUS_EQUAL | += | ��ֵ����� |
T_PRINT | print() | |
T_PRIVATE | private | ��Ͷ����������� PHP 5�� |
T_PUBLIC | public | ��Ͷ����������� PHP 5�� |
T_PROTECTED | protected | ��Ͷ����������� PHP 5�� |
T_REQUIRE | require() | require |
T_REQUIRE_ONCE | require_once() | require_once |
T_RETURN | return | ����ֵ |
T_SL | << | ���� |
T_SL_EQUAL | <<= | ��ֵ����� |
T_SR | >> | ���� |
T_SR_EQUAL | >>= | ��ֵ����� |
T_START_HEREDOC | <<< | heredoc � |
T_STATIC | static | ������Χ |
T_STRING | ||
T_STRING_CAST | (string) | ����ת�� |
T_STRING_VARNAME | ||
T_SWITCH | switch | switch |
T_THROW | throw | �쳣�������� PHP 5.0.0 ����ã� |
T_TRY | try | �쳣�������� PHP 5.0.0 ����ã� |
T_UNSET | unset() | unset() |
T_UNSET_CAST | (unset) | �����ĵ�; ����Ϊ NULL �� |
T_USE | use | ��δʵ�֣� |
T_VAR | var | ��Ͷ��� |
T_VARIABLE | $foo | ���� |
T_WHILE | while | while��do..while |
T_WHITESPACE | ||
T_XOR_EQUAL | ^= | ��ֵ����� |
T_FUNC_C | __FUNCTION__ | �������� PHP 4.3.0 ����� |
T_CLASS_C | __CLASS__ | �������� PHP 4.3.0 ����� |
�μ� token_name()��