PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
token_name - Get the symbolic name of a given PHP token

token_name( int$id ): string

token_name gets the symbolic name for a PHP id value.



The token value.

Return Values

The symbolic name of the given id.

Example of token_name

Show all examples for token_name

PHP Version:

Function token_name:

Tokenizer Functions

Most used PHP functions