Web студия "GrandView"
  Главная   Написать Контакты
   
   
О проекте
Руководство php
 

token_name

(PHP 4 >= 4.2.0, PHP 5)

token_name -- Get the symbolic name of a given PHP token

Описание

string token_name ( int token )

token_name() gets the symbolic name for a PHP token value.

Список параметров

token

The token value.

Возвращаемые значения

The symbolic name of the given token. The returned name returned matches the name of the matching token constant.

Примеры

Пример 1. token_name() example

<?php
// 260 is the token value for the T_REQUIRE token
echo token_name(260);        // -> "T_REQUIRE"

// a token constant maps to its own name
echo token_name(T_FUNCTION); // -> "T_FUNCTION"
?>

Смотрите также

List of Parser Tokens



add a note add a note User Contributed Notes
token_name
There are no user contributed notes for this page.

Unicode> <token_get_all
Last updated: Sat, 27 Jan 2007
 
 
Новости
11 июля 2007
Сайт запущен
© 2007 info@grandviewstudio.com

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 324

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 330
Z058440144362 Z348613067571