Statement on glibc/iconv Vulnerability

PhpToken::__toString

(PHP 8)

PhpToken::__toStringReturns the textual content of the token.

说明

public PhpToken::__toString(): string

Returns the textual content of the token.

参数

此函数没有参数。

返回值

A textual content of the token.

示例

示例 #1 PhpToken::__toString() example

<?php
$token
= new PhpToken(T_ECHO, 'echo');
echo
$token;

以上示例会输出:

echo

参见

  • token_name() - 获取提供的 PHP 解析器代号的符号名称
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top