token_name
(PHP 4 >= 4.2.0, PHP 5)
token_name — Get the symbolic name of a given PHP token
Description
string token_name
( int $token
)
Parameters
-
token
-
The token value.
Return Values
The symbolic name of the given token
. The returned
name returned matches the name of the matching token constant.
Examples
Example #1 token_name() example
<?php
echo token_name(260); echo token_name(T_FUNCTION); ?>