• PHP Video Tutorials

PHP - token_name() Functions



token_name() function can get the symbolic name of a given PHP token.

Syntax

string token_name( int $token )

token_name() function can get the symbolic name for a PHP token value, and it can return a symbolic name of the given token.

Example

<?php
   echo token_name(260);  // −> "T_EVAL"
   echo token_name(T_FUNCTION);  // −> "T_FUNCTION"
?>
php_function_reference.htm
Advertisements