← All docs

token_name()

Get the symbolic name of a PHP token identifier.

token_name()

function token_name(int $id): string

Get the symbolic name of a PHP token identifier.

Parameters:

  • $id (int)

Returns: string

Availability

Compiled (AOT)Magician (eval)
AvailableAvailable

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how token_name is implemented in the compiler, see the internals page.