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

search for in the

URLs> <token_get_all
[edit] Last updated: Fri, 17 May 2013

view this page in

token_name

(PHP 4 >= 4.2.0, PHP 5)

token_nameObtiene el nombre simbólico de un token PHP dado

Descripción

string token_name ( int $token )

token_name() obtiene el nombre simbólico para un valor de token PHP.

Parámetros

token

El valor token.

Valores devueltos

El nombre simbólico para el token dado.

Ejemplos

Ejemplo #1 token_name() ejemplo

<?php
// 260 es el valor de token para T_EVAL token
echo token_name(260);        // -> "T_EVAL"

// una constante token mapea a su propio nombre
echo token_name(T_FUNCTION); // -> "T_FUNCTION"
?>



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

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