PhpToken::__toString
(PHP 8)
PhpToken::__toString — Returns 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 解析器代号的符号名称

User Contributed Notes
There are no user contributed notes for this page.