|
Appendix S. 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
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. Table S.1. Tokens
See also token_name(). Related Examples ( Source code ) » tokens Examples ( Source code ) » Use more than one delimiter to split string Examples ( Source code ) » Dividing a String into Tokens with strtok() Code Examples / Notes » tokensashgenesis
List of Parser Tokens and his numeric value Array ( [T_ML_COMMENT] => T_ML_COMMENT // php4 only [T_OLD_FUNCTION] => T_OLD_FUNCTION // show http://fr.php.net/manual/en/migration.old-function.php [T_REQUIRE_ONCE] => 258 [T_REQUIRE] => 259 [T_EVAL] => 260 [T_INCLUDE_ONCE] => 261 [T_INCLUDE] => 262 [T_LOGICAL_OR] => 263 [T_LOGICAL_XOR] => 264 [T_LOGICAL_AND] => 265 [T_PRINT] => 266 [T_SR_EQUAL] => 267 [T_SL_EQUAL] => 268 [T_XOR_EQUAL] => 269 [T_OR_EQUAL] => 270 [T_AND_EQUAL] => 271 [T_MOD_EQUAL] => 272 [T_CONCAT_EQUAL] => 273 [T_DIV_EQUAL] => 274 [T_MUL_EQUAL] => 275 [T_MINUS_EQUAL] => 276 [T_PLUS_EQUAL] => 277 [T_BOOLEAN_OR] => 278 [T_BOOLEAN_AND] => 279 [T_IS_NOT_IDENTICAL] => 280 [T_IS_IDENTICAL] => 281 [T_IS_NOT_EQUAL] => 282 [T_IS_EQUAL] => 283 [T_IS_GREATER_OR_EQUAL] => 284 [T_IS_SMALLER_OR_EQUAL] => 285 [T_SR] => 286 [T_SL] => 287 [T_INSTANCEOF] => 288 [T_UNSET_CAST] => 289 [T_BOOL_CAST] => 290 [T_OBJECT_CAST] => 291 [T_ARRAY_CAST] => 292 [T_STRING_CAST] => 293 [T_DOUBLE_CAST] => 294 [T_INT_CAST] => 295 [T_DEC] => 296 [T_INC] => 297 [T_CLONE] => 298 [T_NEW] => 299 [T_EXIT] => 300 [T_IF] => 301 [T_ELSEIF] => 302 [T_ELSE] => 303 [T_ENDIF] => 304 [T_LNUMBER] => 305 [T_DNUMBER] => 306 [T_STRING] => 307 [T_STRING_VARNAME] => 308 [T_VARIABLE] => 309 [T_NUM_STRING] => 310 [T_INLINE_HTML] => 311 [T_CHARACTER] => 312 [T_BAD_CHARACTER] => 313 [T_ENCAPSED_AND_WHITESPACE] => 314 [T_CONSTANT_ENCAPSED_STRING] => 315 [T_ECHO] => 316 [T_DO] => 317 [T_WHILE] => 318 [T_ENDWHILE] => 319 [T_FOR] => 320 [T_ENDFOR] => 321 [T_FOREACH] => 322 [T_ENDFOREACH] => 323 [T_DECLARE] => 324 [T_ENDDECLARE] => 325 [T_AS] => 326 [T_SWITCH] => 327 [T_ENDSWITCH] => 328 [T_CASE] => 329 [T_DEFAULT] => 330 [T_BREAK] => 331 [T_CONTINUE] => 332 [T_FUNCTION] => 333 [T_CONST] => 334 [T_RETURN] => 335 [T_TRY] => 336 [T_CATCH] => 337 [T_THROW] => 338 [T_USE] => 339 [T_GLOBAL] => 340 [T_PUBLIC] => 341 [T_PROTECTED] => 342 [T_PRIVATE] => 343 [T_FINAL] => 344 [T_ABSTRACT] => 345 [T_STATIC] => 346 [T_VAR] => 347 [T_UNSET] => 348 [T_ISSET] => 349 [T_EMPTY] => 350 [T_HALT_COMPILER] => 351 [T_CLASS] => 352 [T_INTERFACE] => 353 [T_EXTENDS] => 354 [T_IMPLEMENTS] => 355 [T_OBJECT_OPERATOR] => 356 [T_DOUBLE_ARROW] => 357 [T_LIST] => 358 [T_ARRAY] => 359 [T_CLASS_C] => 360 [T_FUNC_C] => 362 [T_LINE] => 363 [T_FILE] => 364 [T_COMMENT] => 365 [T_DOC_COMMENT] => 366 [T_OPEN_TAG ] => 367 [T_OPEN_TAG_WITH_ECHO] => 368 [T_CLOSE_TAG] => 369 [T_WHITESPACE] => 370 [T_START_HEREDOC] => 371 [T_END_HEREDOC] => 372 [T_DOLLAR_OPEN_CURLY_BRACES] => 373 [T_CURLY_OPEN] => 374 [T_PAAMAYIM_NEKUDOTAYIM] => 375 [T_DOUBLE_COLON] => 375 ) |
Change LanguageHistory of PHP and related projects Migrating from PHP 5.1.x to PHP 5.2.x Migrating from PHP 5.0.x to PHP 5.1.x Migrating from PHP 4 to PHP 5 Migrating from PHP 3 to PHP 4 Migrating from PHP/FI 2 to PHP 3 Debugging PHP Configure options php.ini directives List of Supported Timezones Extension Categorization List of Function Aliases List of Reserved Words List of Resource Types List of Supported Protocols/Wrappers List of Available Filters List of Supported Socket Transports PHP type comparison tables List of Parser Tokens Userland Naming Guide |