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

search for in the

URL Funkcje> <token_get_all
Last updated: Fri, 20 Nov 2009

view this page in

token_name

(PHP 4 >= 4.2.0, PHP 5)

token_nameZwraca symboliczną nazwę danego tokena PHP

Opis

string token_name ( int $token )

token_name() pobiera symboliczną nazwę tokena dla wartości podanej w parametrze token .

Parametry

token

Wartość tokena.

Zwracane wartości

Nazwa symboliczna podanego tokenu . Zwracana nazwa jest identyczna z nazwą stałej zdefiniowanej dla wartości tego tokena.

Przykłady

Przykład #1 Przykład użycia token_name()

<?php
  
// 260 jest wartością tokena dla tokena T_REQUIRE
  
echo token_name(260);        // -> "T_REQUIRE"

  // stała zdefiniowana dla tokena odpowiada swojej nazwie
  
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.

URL Funkcje> <token_get_all
Last updated: Fri, 20 Nov 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites