downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

URLs> <token_get_all
Last updated: Fri, 13 Nov 2009

view this page in

token_name

(PHP 4 >= 4.2.0, PHP 5)

token_name指定した PHP トークンのシンボル名を取得する

説明

string token_name ( int $token )

token_name()は、PHP token 値のシンボル名を返します。

パラメータ

token

トークンの値。

返り値

token に対応するシンボル名を返します。 返される名前は、検索用に指定したトークン定数の名前に一致します。

例1 token_name() の例

<?php
// 260は T_REQUIRE トークンのトークン値
echo token_name(260);        // -> "T_REQUIRE"

// 自身の名前にマップするトークン定数
echo token_name(T_FUNCTION); // -> "T_FUNCTION"
?>



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

URLs> <token_get_all
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites