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

search for in the

URLe> <Funkcje Tokenizer
Last updated: Fri, 27 Jun 2008

view this page in

token_name

(PHP 4 >= 4.2.0, PHP 5)

token_name — Zwraca 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

Example #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.

URLe> <Funkcje Tokenizer
Last updated: Fri, 27 Jun 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites