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
[edit] Last updated: Fri, 10 Feb 2012

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_EVAL トークンのトークン値
echo token_name(260);        // -> "T_EVAL"

// 自身の名前にマップするトークン定数
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.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites