略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: token_name

2024-03-29

token_name

(PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8)

token_name获取提供的 PHP 解析器代号的符号名称

说明

token_name(int $token): string

token_name() 获取一个 PHP token 的符号名称.

参数

token

解析器代号的值.

返回值

提供的token 的符号名.

范例

示例 #1 token_name() example

<?php
// 260 is the token value for the T_EVAL token
echo token_name(260);        // -> "T_EVAL"

// a token constant maps to its own name
echo token_name(T_FUNCTION); // -> "T_FUNCTION"
?>
add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.token-name.php

冷却塔厂家 广告
-- 广告
北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3